Re: [xml] Return type of the xpath query during the compilation of xpath

On Thu, May 29, 2008 at 01:17:35PM +0530, Umesh Chandak wrote:
Thanks for the reply. Can you provide me some pointers for how I can do 
this without the variable in xpath.
Basically I want to determine the return type of xpath query is boolean, 
string , number or nodeset without the variable in xpath queries.

  Like for any expression, the compiler build a tree out of it,
you start from the leaves where you assume you can explicitely give the
type and propagate the result up to the top of the tree. Explained
in great details in any compiler book. The best is usually to build this
up as the tree is built. But we have no type placeholder in XPath
internal tree expressions, you would have to do this from scratch.


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]