RE: Incompatibilities XPath 1.0 vs 2.0?

> "Kay, Michael" wrote:
> > 
> > [Incidentally, since we go out of our way to mention the 
> need to sometimes
> > put a space before "-" to stop it being swallowed as part 
> of a name, we
> > ought to say the same about "."].
> 
> Except that I don't think there's a context in which a "." can legally
> follow a name, so there's no ambiguity.
> 

What about
  $a div .

the "div" here is an operator, but if it's written
  $a div.

then the "div." will be tokenized as a single token and a parse error will
result.

Mike Kay

Received on Tuesday, 8 January 2002 05:49:42 UTC