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

Re: XSL to XSLT conversion issue

Subject: Re: XSL to XSLT conversion issue
From: S Woodside <sbwoodside@xxxxxxxxx>
Date: Tue, 15 Apr 2003 16:49:40 -0400
xsl conversion xslt

On Tuesday, April 15, 2003, at 04:37 PM, J.Pietschmann wrote:


Jim Hart wrote:
I want to convert:
[ index() $gt$ context()!index() ]
to something equivalent in XSLT. In MSXML docs, it says that context() is equivalent to context(-1). At topxml it says that current() in XSLT is equivalent to context(-1) in XSL. I know I can use > in place of $gt$ and position() in place of index(). However, there's no equivalent for the "bang operator" (!) and position() won't take an argument. So, I can't figure out how to get the position() of current().

Bind it to a variable, for example <xsl:variable name="current-position" select="position()"/> ... <xsl:value-of select="$foo[position() &gt; $current-position]"/>

Wouldn't the variable be evaluated in the context of $foo ?


simon


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.