[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: position() problem
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@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > François Parlant > Sent: 26 June 2003 09:05 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: 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
|
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
|