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

Unexpected ('a', 'b')[fn:position()] result

Subject: Unexpected ('a', 'b')[fn:position()] result
From: "Rachel D. Basse" <honestrosewater@xxxxxxxxx>
Date: Tue, 6 Mar 2007 18:56:03 -0500
 Unexpected ('a'
I am using XSLT 2.0, XPath 2.0, and Saxon-B 8.9 (which I dearly love). 

This one has driven me completely batty. By all tests and appearances, 

<xsl:template match="/">
 <xsl:sequence select="fn:position()"/>
</xsl:template>

returns the integer 1,

<xsl:template match="/">
 <xsl:sequence select="('a', 'b')[1]"/>
</xsl:template>

returns the string 'a', and

<xsl:template match="/">
 <xsl:sequence select="('a', 'b')[fn:position()]"/>
</xsl:template>

returns ('a', 'b'). 

Why is this? Everything tells me the last expression should evaluate to 'a'. Did I miss something?

Thanks for reading,
Rachel Basse


Care2 make the world greener!

Stop the Forest Service from killing more wolves, bears, cougars, and other animals in the wild:
http://go.care2.com/99055

http://www.Care2.com  Free e-mail. 100MB storage.  Helps nonprofits. 

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-2011 All Rights Reserved.