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

RE: need a substitue for the current() function

Subject: RE: need a substitue for the current() function
From: "Michael Kay" <michael.h.kay@xxxxxxxxxxxx>
Date: Tue, 13 Nov 2001 00:03:38 -0000
i substitue your logic
> we are using the xalan processor on an AS400 at work, and for
> some reason it
> seems to choke everytime I use the current() function.
>
> i.e. <xsl:for-each select="//Ledger_Entry[.//Long_Name=current()]">

What exactly are the choking symptoms?
>
> Does anyone know how to write a "longhand" version of the
> current() function
> which will return a node-set that has the current node as its
> only member?

I suspect your logic is wrong, and that replacing it with equivalent logic
will therefore just reproduce the same symptoms, but in nearly all cases you
can replace current() with $current, having previously assigned $current to
".".

Mike Kay


 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.