comment on XSL AncestryPattern syntax

I am writing an XSL implementation . I believe that the choice of "/"
for the RootPattern is unfortunate. It complicates the syntax, and seems
to prohibit a potentially  useful construct. Suggestion: amend the
syntax as follows:

1. make the RootPattern ::= '...' or 'root' (assume '...')
    [15] RootPattern ::= '...'
2. add it to the AbsoluteAnchors' (which of course the root really is)
as follows:
    [9] AbsoluteAnchor ::= IdAnchor | RootPattern
3. Now the AncestryPattern can be simplified to:
    [3] AncestryPattern ::= (Anchor AncestryOp)? NodePatterns

as a result of treating the root pattern as an AbsoluteAnchor the
following useful construct would be possible:
...//something/attribute(foo)

I'm not certain how to express the equivalent semantics in the current
syntax: i.e. go to the root, then select an element "something" anywhere
in the tree.

Regards,
John

--
John Alden
Abaton.com, Inc.
Riverview Office Tower, Suite 600
8009 34th Ave South
Bloomington, MN 55425

612.814.8212
612.854.6196 (fax)

email: jalden@abaton.com

Received on Thursday, 29 October 1998 12:46:58 UTC