Re: Two grammar questions

Krzysztof Maczyn'ski wrote:
> Dear WG,
> 
>> [38]     AbbrevForwardStep     ::=     "@"? NodeTest
> Shouldn't that be NameTest?

You mean instead of NodeTest? Nope. If it were NameTest, that would 
exclude  KindTest from that context, which would disallow paths such as
     a/element()
and
     section/attribute(id)
(See point 2 in the "Abbreviated Syntax" section.)

> Also, how does the grammar generate a PathExpression ending with "/" other than "/"?

It doesn't.

>> If E is any expression that returns a sequence of nodes,
>> then the expression E/. returns the same nodes in document order,
>> with duplicates eliminated based on node identity.

Yes. Note that E/. doesn't end with "/", it ends with "." .

-Michael

Received on Friday, 31 December 2010 18:24:56 UTC