W3C home > Mailing lists > Public > xsl-editors@w3.org > October to December 1998

comment on XSL AncestryPattern syntax

From: John Alden <jalden@abaton.com>
Date: Thu, 29 Oct 1998 11:55:29 -0600
Message-ID: <3638AC11.F4FA8E09@abaton.com>
To: xsl-editors@w3.org
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:

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.


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

612.854.6196 (fax)

email: jalden@abaton.com
Received on Thursday, 29 October 1998 12:46:58 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:44:16 UTC