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

Evaluation of a string containing a valid XPath Patter

Subject: Evaluation of a string containing a valid XPath Pattern
From: "Carsten Klein" <carstenklein@xxxxxxxx>
Date: Mon, 18 Feb 2002 10:02:18 +0100
valid xpath
Hi,

I was wondering if it is possible to retrieve a node set by evaluating a
global stylesheet parameter
which contains a valid XPath Expression.

Example

<xsl:stylesheet ...>
<xsl:param name="$gXPath"/>

<xsl:template match="/">
    <xsl:value-of select="$gXPath"/>
</xsl:template>
</xsl:stylesheet>

The result would be the string value of $gXPath, but I would need the node
set referred to by $gXPath,
something like eval-xpath-expr($gXPath) or else would be great, any ideas? I
already came to the point
writing something parser-like, parsing the expression contained by $gXPath
and setting up variables to
retrieve the nodes in question, but this is too much overhead, since a lot
of nodes have to be processed
every time the stylesheet is invoked.

Is there a short hand way to do this? I don't want to / cannot use the
transformNode method of the Microsoft
XMLDOM, since I do need the whole xml document.

Thanks

Carsten Klein


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


 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.