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]
Other format: [Raw text]

Re: FW: Path Reversal


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


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