Re: [xsl] traversing node by node in apply-templates

Subject: Re: [xsl] traversing node by node in apply-templates
From: ARULRAJ <p_arulraj@xxxxxxxxx>
Date: Wed, 10 Dec 2003 22:06:21 -0800 (PST)
Hello all,
   I have doubt using apply-templates. I am using XML,
XSLT for generating html. 

I have given sample code here.
XML files here
			<binding variable="iIndex" value="2"/>
						<binding variable="TrueIndex" value="3"/>
					<binding variable="aftercondition1" value="1"/>
					<binding variable="aftercondition2" value="2"/>
					<binding variable="aftercondition3" value="3"/>
I want to traverse content of <rule> one by one. Here
<bindings> and <condition> are appear in XML any
So, If I use the below code only <bindings> will be
processed and <condition> next. How to traverse one by
<xsl:template match="rule">
		<xsl:if test="bindings">
			<xsl:apply-templates select="bindings"/>
		<xsl:if test="condition">
			<xsl:apply-templates select="condition"/>

Please give your suggestion.

Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.

 XSL-List info and archive:

Current Thread