[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xpath help?
Paul,
The following templates should work for you. <xsl:template match="hls"> <xsl:apply-templates select="hl[(ots/ot/@id = '2' or ots/ot/@id = '3') and cts/ct/@id = '1']"/> </xsl:template> <xsl:template match="hl"> <xsl:for-each select="sizes/size"> <xsl:value-of select="@id"/> </xsl:for-each> </xsl:template> rick At 10:15 AM 7/9/03 -0700, you wrote: How do I get all possible sizes from the following XML using only one xPath given the criteria of ot[@id = 2 or @id = 3] and ct[@id = 1]?
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
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
|