XML
XML encoding for XPath expressions
16:04, 15 Mar 2001 UTC | Eric van der Vlist

Following a long thread initiated by Charles Reitzel about the need of a XPath API and the suggestion made by several posts to define a XML encoding that could be returned by SAX XPath parsers, Wayne Steele posted a proposal ( DTD and examples) for such an encoding under the title "XML-Encoded XPath: an alternate syntax for XPath expressions".

This proposal doesn't use XPath syntax, but rather provides a straight XML representation of the concepts described in the XPath 1.0 recommendation:

  • An XPath expression is broken into a sequence of location steps and represented as a multi-rooted set of location steps.
  • Each location step contains the three parts (axis, node test and one of more predicates).
  • The function calls are defined by their name and set of parameters.

Steele welcomes questions, comments and errata.

Related stories:

| See all 5 comments

Newest comments

Re: XML encoding for XPath expressions (goldgewicht - 14:49, 26 Mar 2001)
XPath encoded in XML is a great job! It becomes possible now to transform quite easily an Xpath expr ...
Re: XML encoding for XPath expressions (goldgewicht - 14:44, 26 Mar 2001)
XPath encoded in XML is a great job! It becomes possible now to transform quite easily an Xpath expr ...
Re: XML encoding for XPath expressions (Eric van der Vlist - 10:05, 21 Mar 2001)
I don't see the purpose of this proposal as a replacement of the current XPath syntax for authoring ...
Re: XML encoding for XPath expressions (Oleg Tkachenko - 16:12, 17 Mar 2001)
I think it's rather ugly idea. XPath syntax is a very balanced brevity-clearness tradeoff while the ...
  
xmlhack: developer news from the XML community

Front page | Search | Find XML jobs

Related categories
XML
Community