Re: compiling XPath to Scheme source code

"Dmitry Lizorkin" <[email protected]> Mon, 22 Nov 2004 15:08:18 +0300
Newsgroups gmane.lisp.scheme.ssax-sxml
Message-ID <[email protected]>
Hello!

>   I'd like to get suggestions what other XPath issues should
> be tested before starting to make a real implementation.

You mignt be interesting for you to test some of the following XPath issues:

  a. Predicates that involve context position and/or size when the location
step is applied to a non-singleton nodeset. In particular, your example
> /AAA/BBB[1]        # selecting a node by its position
for the document like the one below:

(*TOP* (AAA (BBB "11") (BBB "12"))
              (AAA (BBB "21") (BBB "22")))

  b. Several predicates, some of them to involve context position and/or
size. For example:

child::para[attribute::type='warning'][position()=5]

Please note the semantical difference of this location path with the one
below:

child::para[position()=5][attribute::type="warning"]

  c. Compling XPath location paths that contain non-desceding axes, e.g.
following-sibling or parent.

Regards,
Dmitry





-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/