This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: need a substitue for the current() function
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] need a substitue for the current() function
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- Date: Tue, 13 Nov 2001 00:03:38 -0000
- Reply-to: xsl-list at lists dot mulberrytech dot com
> 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