|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] position() returning incorrect results
hi! i discovered something weird in xsl yesterday and i can't work out why it happens..... i just had an <xsl:apply-templates> to get the stylesheet to work on an html like file, which just had lots of <p> tags for paragraphs in it. when i do the <xsl:template match="p"> and then try to print the position() it all goes wrong and seems to count up in twos. what confuses me more is that if i have a seperate template for <xsl:template match="p[1]"> it will correctly pick out the first paragraph and report it's position() as being 1. is there some restriction on position(), i can't see that both my xsl processors are wrong so it must be me :) thanks. jw. -- GMX - Die Kommunikationsplattform im Internet. http://www.gmx.net 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








