[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
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|