[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: alphabetic counters

Subject: Re: alphabetic counters
From: John-Mark Gurney <jgurney@xxxxxxxxxxx>
Date: Mon, 10 May 2004 13:01:23 -0700
john mark gurney ncircle
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.