Re: [xml-dev] ANN: xpath1() scheme for XPointer

From
Tim Bray <>
To
John Cowan <>
Date
2002-10-28T17:41:08Z
ID
<>
Thread
Re: [xml-dev] ANN: xpath1() scheme for XPointer
John Cowan wrote:

>
>
> I'm confused.  If the above is meant to be a WF XML document, it isn't.
> The tags of the root element have to be explicitly within the document
> entity -- an entity reference is not legal at top level.  See 
> production 1.

Er uh you sure John?  I betcha most parsers accept it.  The XML Spec 
never did a good job of making up its mind whether it was defining the 
pre-entity-expansion or post-entity-expansion infoset.  The correct 
solution is of course to discard all entities except numeric character 
references, cf XML-SW. -Tim