Subject: RE: [xsl] Match nodes with a range of values From: "Karl J. Stubsjoen" <karl@xxxxxxxxxxxxxxxxxxxx> Date: Thu, 15 Jul 2004 08:43:53 -0700 |
David: Sorry, I did not overlook your original comment on this topic, but felt the subject was left open to persue a solution. I have to have one! What is an XSLT Construct? Would something like this work? (I guess I don't understand the restrictions). <xsl:apply-templates select="ABC[@val1 > 5 and @val2 < 5]"/> <XML> <ABC val1="6" val2="9"/> <ABC val1="7" val2="20"/> <ABC val1="3" val2="8"/> </XML> You should get: <ABC val1="3" val2="8"/> Karl -----Original Message----- From: David Carlisle [mailto:davidc@xxxxxxxxx] Sent: Thursday, July 15, 2004 8:12 AM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: Re: [xsl] Match nodes with a range of values > as I said in my original reply I don't think you can do this with a pure > xslt 1 expression, you could in xslt2 or you need to use an xslt costruct: sorry that was garbled: as I said in my original reply I don't think you can do this with a pure XPath 1 expression, you could in XPath 2 or you need to use an xslt costruct: ^^^^^ David ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Match nodes with a range , David Carlisle | Thread | RE: [xsl] Match nodes with a range , Michael Kay |
RE: [xsl] Match nodes with a range , Michael Kay | Date | [xsl] default namespace in xsl and , stefan krause |
Month |