document(X)//mot[3] selects every mot element that is the third child of
its parent. If you want the third mot element in the document, you need
(document(X)//mot)[3]
Michael Kay
-----Original Message-----
From: owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
[mailto:owner-xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com] On Behalf Of
François Parlant
Sent: 26 June 2003 09:05
To: XSL-List(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] position() problem
Hi,
My pb with this drives me crazy, and as my latest post
did'nt get answered, I'll give a simpler try.
Why does "document('mygloss.xml')//mot[$pos]" only gives
answer for $pos=1 and returns nothing for all other values?
I've also tried some number($pos), but it didn't work.
Please any help would be great.
François
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list