RE: [xml-dev] XSLT and XQuery

From
Michael Kay <>
To
'Jonathan Borden' <>, , 'Mike Champion' <>,
Date
2002-01-08T17:38:05
ID
<001301c1986b$3be91c20$465169d5@pcukmka>
Thread
RE: [xml-dev] XSLT and XQuery
> -- XQuery should normatively reference XPath 2.0 for the
> PathExpr grammar
> production rather than duplicating it -- if at all possible.

The XQuery and XPath documents are generated from a single XML master
source. We decided that users would find it more convenient if the common
material was present in both documents rather than requiring constant
cross-referencing from one to the other. Internally we work with a master
HTML document that describes both languages, using color to highlight the
differences. There are many ways of tackling the presentation, but it's
essentially an editorial problem rather than a technical one.

(Incidentally the common XML source represents the grammatical productions
in such a way that a JavaCC parser can be automatically generated using an
XSLT stylesheet, and this JavaCC parser has been used to test the examples
in both documents).

Mike Kay