kamakshi wrote:
hi,
<Select>
      <SearchFilter></SearchFilter>
      <Component>http://3gpp/ap/bs</Component>
      <GL>/Profile/Sub/App</GL>
 </Select>
This is my xml....
now i want to use an xpath to find the details of App using the GL
only............
i tried using the xpath:
Select/GL, but this returns only the value of GL as a string, is there any way of
evaluating the content of a node as xpath? can anybody help me out?

Without more information about what you're doing, it's hard to say how you should solve this problem. If this is part of a stylesheet, you can use the EXSLT function evaluate():

http://www.exslt.org/dyn/functions/evaluate/index.html

There is no way with standard XSLT to do dynamic evaluation of XPath expressions within a stylesheet.

If you're writing code to do this work, you can use the XPathEvaluator class to compile and evaluate the XPath expression. There is a sample application that illustrates how to use that class.

Dave

Reply via email to