Re: [xml] Return type of the xpath query during the compilation of xpath
- From: Daniel Veillard <veillard redhat com>
- To: Umesh Chandak <umeshc gslab com>
- Cc: xml gnome org
- Subject: Re: [xml] Return type of the xpath query during the compilation of xpath
- Date: Thu, 29 May 2008 04:04:22 -0400
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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]