Re: [xsl] FW: Path Reversal

Subject: Re: [xsl] FW: Path Reversal
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 28 Jan 2002 17:53:11 +0100
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@xxxxxxxx


--

System Development
VIRBUS AG
Fon  +49(0)341-979-7411
Fax  +49(0)341-979-7409
joerg.heinicke@xxxxxxxxx
www.virbus.de


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread