Subject: Re: [xsl] self closing elements with attributes From: Wendell Piez <wapiez@xxxxxxxxxxxxxxxx> Date: Tue, 06 Jan 2004 16:00:31 -0500 |
Cheers, Wendell
I'm sure this is a newbie problem, but I can't see what I'm doing wrong.
I have a template like this:
<xsl:element name="foo"> <xsl:attribute name="bar"> some foo </xsl:attribute> </xsl:element>
I have also tried:
<foo> <xsl:attribute name="bar"> some foo </xsl:attribute> </foo>
Both give the same result:
<foo bar="some foo">
Which is a problem since it does not close the tag. If I try
<xsl:element name="foo"> <xsl:attribute name="bar"> some foo </xsl:attribute> foo </xsl:element>
or
<foo> <xsl:attribute name="bar"> some foo </xsl:attribute> foo </foo>
The result is a correctly closed tag:
<foo bar="some foo">foo</foo>
I have tried this with the same results on several varieties of MSXML, and on Xalan-1 and Xalan-2
Is there anything I can do about this that won't require post processing?
====================================================================== Wendell Piez mailto:wapiez@xxxxxxxxxxxxxxxx Mulberry Technologies, Inc. http://www.mulberrytech.com 17 West Jefferson Street Direct Phone: 301/315-9635 Suite 207 Phone: 301/315-9631 Rockville, MD 20850 Fax: 301/315-8285 ---------------------------------------------------------------------- Mulberry Technologies: A Consultancy Specializing in SGML and XML ======================================================================
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] self closing elements with at, annirack | Thread | Re: [xsl] self closing elements wit, G. Ken Holman |
RE: [xsl] self closing elements wit, Josh Canfield | Date | RE: [xsl] self closing elements wit, Martinez, Brian |
Month |