Re: Re: [xml-dev] SAX Topic 2004-0002: XML 1.1 support
Michael Glavassevich <[email protected]> Mon, 23 Feb 2004 10:36:42 -0500
| Newsgroups | gmane.text.xml.sax.devel |
|---|---|
| Message-ID | <OF2657594B.46E25437-ON85256E43.0054B013-85256E43.0055AFDB@ca.ibm.com> |
[email protected] wrote on 02/22/2004 03:26:41 PM: > At 9:27 AM -0500 2/22/04, David Megginson wrote: > > >- if a document is in XML 1.1, all of its entities must be as well; > > in that case, should getXMLVersion report XML 1.1 as the default > > even when an entity is explicity labelled as XML 1.0? > > I'm not quite sure what you mean here. An XML 1.1 document can > include 1.0 external entities. According to the XML 1.1 spec: > > An XML 1.1 document may invoke XML 1.0 external entities, so that > otherwise duplicated versions of external entities, particularly DTD > external subsets, need not be maintained. However, in such a case the > rules of XML 1.1 are applied to the entire document. > > I'm not sure what that last sentence means. Can anyone answer these questions? It means that any external entities referenced from the document entity are parsed as XML 1.1 regardless of whether they have been labeled 1.0 (either explicitly or defaulted) or 1.1. At least that's how I interpret it. Xerces behaves according to this interpretation. > 1. What should a 1.1 aware parser do when from a 1.1 document it > loads an external entity that uses an unescaped C1 control character? Such a document isn't well-formed. The parser should report a fatal error. > 2. What should a 1.1 aware parser do when when it loads an entity > labelled as 1.0 and which is malformed by virtue of using an escaped > C0 control character? Such a document is well-formed (even though a 1.0 document which references such an entity isn't). > 3. What should a 1.1 aware parser do when it loads an invalid (but > well-formed) external 1.0 entity which would be valid except for the > use of NEL in white space in element content? Such a document is valid. The parser should normalize NEL to a LF. > Elliotte Rusty Harold > [email protected] > Effective XML (Addison-Wesley, 2003) > http://www.cafeconleche.org/books/effectivexml > http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > List: sax-devel, [email protected] > See: http://www.saxproject.org/ > https://lists.sourceforge.net/lists/listinfo/sax-devel Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [email protected] E-mail: [email protected]