[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: alphabetic counters
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.
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|