Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 36653 invoked by uid 500); 5 Jun 2003 15:58:36 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 36598 invoked from network); 5 Jun 2003 15:58:35 -0000 Received: from unknown (HELO host.leverageweb.com) (64.91.232.157) by daedalus.apache.org with SMTP; 5 Jun 2003 15:58:35 -0000 Received: from dhcp205162.hq.af.mil ([134.205.205.162] helo=WHEW00073U.leverageweb.com) by host.leverageweb.com with esmtp (Exim 3.36 #1) id 19Nx5Q-0007nv-00 for cocoon-dev@xml.apache.org; Thu, 05 Jun 2003 11:55:32 -0400 Message-Id: <5.2.0.9.0.20030605115642.02794ba8@leverageweb.com> X-Sender: cocoon@leverageweb.com@leverageweb.com (Unverified) X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Thu, 05 Jun 2003 11:57:42 -0400 To: cocoon-dev@xml.apache.org From: Geoff Howard Subject: Re: Unusual behaviour with In-Reply-To: <83wug0ed56.fsf@bog.darkzone.fiz-chemie.de> References: <3EDF5FE4.3090608@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - host.leverageweb.com X-AntiAbuse: Original Domain - xml.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [0 0] X-AntiAbuse: Sender Address Domain - leverageweb.com X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N At 11:51 AM 6/5/2003, you wrote: >Berin Loritsch 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