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. Daniel -- Red Hat Virtualization group http://redhat.com/virtualization/ Daniel Veillard | virtualization library http://libvirt.org/ [EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/ _______________________________________________ xml mailing list, project page http://xmlsoft.org/ [email protected] http://mail.gnome.org/mailman/listinfo/xml
