Turning element text into XPath
I would like to take the value of an element and use it as an XPath. For example:
XML
<some_xpath>/colors/blues/@name</some_xpath>
XSL
<xsl:value-of select="some_xpath"/>
(I would like the output to be the nodes of /colors/blues/@name, not the string)
I suppose I could somehow split apart the the string and find each node, but I was hoping there was an easier way.
(assume /colors/blues/@name is XML somewhere else)
Thanks,
Kael
|