This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: FW: Path Reversal
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Mon, 28 Jan 2002 17:53:11 +0100
- Subject: Re: [xsl] FW: Path Reversal
- References: <000b01c1a806$8f363890$e290fea9@juno>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi Alek,
such an extension function already exists in Saxon, it's called
evaluate() there. I think there is a high probability that this exists
in EXSLT too.
Regards,
Joerg
Alek Andreev wrote:
> Hi!
>
> Suppose I have the following piece of XML:
>
> <node name="funstuff">
> <node name="jokes">
> <node name="veryfunnyjoke"/>
> </node>
> </node>
>
> I have a path (as a string) which is composed of the @names of the
> nodes. It looks like /funstuff/jokes/veryfunnyjoke. How can I write a
> template (or an EXSLT function) that returns the node the path points to
> (e.g. veryfunnyjoke)?
>
>
> Regards,
> Alek Andreev
> alek@post.com
--
System Development
VIRBUS AG
Fon +49(0)341-979-7411
Fax +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list