|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Apply-templates
You wrote <section> <item>I am item number 1</item> <item>I am item number 2</item> <item>I am item number 3</item> <xsl:template match="section"> <xsl:apply-templates select="following-sibling::item[position() = 3]"/> you are sat at a section node, and you have asked to go from there to the third item node that is a sibling of the current node. That isn't what you want as the item nodes are children of section, and you want all items after position 2, not just the third. <xsl:template match="section"> <xsl:apply-templates select="item[position() > 2]"/> David 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
|

Cart








