Subject: Re: [xsl] alphabetic counters From: John-Mark Gurney <jgurney@xxxxxxxxxxx> Date: Mon, 10 May 2004 13:01:23 -0700 |
Passin, Tom wrote this message on Mon, May 10, 2004 at 15:18 -0400: > > But outputting nodes within an xml:if and closing them within another > > causes parse errors in Libxslt and Sablotron. You want something like this: <xsl:template select="/"> <rows> <xsl:if test="boolean(1)"> <xsl:attribute name="ifattr">the value</xsl:attribute> </xsl:if> </rows> </xsl:tempalte> That will output: <rows ifattr="the value"/> Notice how you use the attribute to set an attribute on the enclosing rows element? And this maintains well formed XML along with letting you handle if statements to manipulate the output nodes. -- John-Mark Gurney nCircle Network Security, Inc.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] alphabetic counters, Passin, Tom | Thread | [xsl] using document in xsl:key mat, John-Mark Gurney |
[xsl] Closest matching value, Stuart Robinson | Date | [xsl] Page breaks in a table..., Julian L. Hunter |
Month |