2008/12/4 NvoiceMarklogic <[EMAIL PROTECTED]>:
> Hi All,
>
> I have a doubt in XPTH.
> i have xml content in a variable and xpath is also in a node.
> how i can get nodes form content using the xpath varaible.
> can any one suggest me.
>
>
> ex:
> let $content :="<books><book><title>C
> &DS</title><price>100</price><volume>1</volume></book>
>                                      <book><title>AI
> </title><price>150</price><volume>3</volume></book>
>                     </books>"
> let $path:="/books/book/title"
>
> how i can get title node from content, can u help meout.


Why put the xpath expression in a variable?
Unless xquery has been upgraded you can't use that on a node.

Use the xpath directly.

HTH




-- 
Dave Pawson
XSLT XSL-FO FAQ.
Docbook FAQ.
http://www.dpawson.co.uk
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to