|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Okay, so you can't do dynamic XPaths..
Hi Michael,
> Comments please? The syntax:
>
> select="@*[name() = $param-value-field]"/
>
> strikes me as being somewhat ugly. Is this the best I'm gonna get?
I'm afraid so. Some processors have an extension function that enables
you to evaluate strings as XPath expressions, e.g.:
select="saxon:evaluate(concat('@', $param-value-field))" />
But if you can do it portably, as with the expression you have above,
then you should do.
Cheers,
Jeni
---
Jeni Tennison
http://www.jenitennison.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
|

Cart








