xsl-list
[Top] [All Lists]

RE: Templates

2003-07-25 01:44:41


-----Original Message-----
From: Dinesh Kumar [mailto:dkumar(_at_)amadeus(_dot_)net]
Sent: 25 July 2003 09:30
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] Templates


Hello,
      How can I add more than one criteria to

<xsl:template match="Foobar[IsGod=1]">

to have something like

<xsl:template match="Foobar[IsGod=1,IsDevil=0]">

which does not work!

well why expect something to work, when you just made it up !

try something like this;

<xsl:apply-templates select="Foobar[condition1=1][condition2=2]"/>

or use boolean statements ( and, or )

<xsl:apply-templates select="Foobar[condition1=1 and condition2=2]"/>

gl, jim fuller





Thanks
dinesh




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>