cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoff Howard <coc...@leverageweb.com>
Subject Re: Unusual behaviour with <xsp-uti:include-uri/>
Date Thu, 05 Jun 2003 15:57:42 GMT
At 11:51 AM 6/5/2003, you wrote:
>Berin Loritsch <bloritsch@apache.org> writes:
>
> > You are probably the victim of an XML parser getting more strict with
> > the XML spec.
> >
> > Having comments outside the root element of a document is _not_ well
> > formed, and any XML parser is free to reject that.  If you move those
> > comments INSIDE the root element, you should also lose the exceptions.
>
>Is this true? The production rules for XML 1.0 (second edition) say:
>
>[1]     document           ::=          prolog element Misc*
>                                                ^^
>                                   This is  the root element.
>[22]            prolog     ::=          XMLDecl? Misc* (doctypedecl Misc*)?
>[27]            Misc       ::=          Comment | PI | S
>
>No comments are allowed before the XML declaration, but they are allowed
>directly behind it and before the beginning of the root element.
>Otherwise 90% of my XML documents would be invalid.

I wonder if this happens when the xml declaration is missing?

Geoff 


Mime
View raw message