[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Storing xpath expressions in a vaiable

Subject: Re: Storing xpath expressions in a vaiable
From: Paul Tchistopolskii <paul@xxxxxxx>
Date: Thu, 28 Sep 2000 19:07:35 -0700
Re: Storing xpath expressions in a vaiable
From: <Sridhar_Ramachandran@xxxxxx>

> 
> Hi,
>      I am trying to store an xpath expression in variable and trying to
> evaluate it and storing the results in another variable. The xpath
> expression used might depend on the value of some parameter(s) passed to
> the style sheet. 

Welcome to the club. 

The simplest solution is to use SAXON engine 
which understands saxon:evaluate extension function.

saxon:evaluate is not a part of W3C specs  so it is 
not portable.

I have implemented the xml 'grep' in 'plain'  
XSLT  ( my xml 'grep' is part of Ux v 0.3 
available for browsing at http://www.pault.com/Ux/)

I came to conclusion that :

<conclusion>
For some cases saxon:evaluate is *much* better than 
any conformant solution. 
</conclusion>

I think the number of those cases will keep growing. 
The more flexible ( and universal ) you want your stylesheet 
to be - the bigger is your need in saxon:evaluate. 

So maybe Sebastian was in some way correct when 
he was talking about his 'naive' usage of XSLT ;-)

Rgds.Paul.



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.