This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: need a substitue for the current() function


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]