[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

position() returning incorrect results

Subject: position() returning incorrect results
From: jon wa <jonni@xxxxxxxxx>
Date: Thu, 14 Feb 2002 16:23:15 +0100 (MET)
position returning in xsl
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.