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

RE: position() problem

Subject: RE: position() problem
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Thu, 26 Jun 2003 10:36:02 +0100
mot element
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


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.