[Home] [By Thread] [By Date] [Recent Entries]

  • To: xml-dev@l...
  • Subject: version numbers and infosets
  • From: Richard Tobin <richard@c...>
  • Date: Mon, 22 Jul 2002 11:07:08 +0100 (BST)
  • Organization: just say no

The alert reader will have noticed an inconsistency, or at least a
tension, between my last two articles.

In one I suggested that a given document should have a single infoset.

In the other I suggested - in line with the current XML 1.0 spec -
that an XML 1.0 parser would accept XML 1.1 documents that were
well-formed XML 1.0 apart from the version number.

But of course an XML 1.0-only parser cannot generate the correct
infoset for all such documents, because of the changed whitespace
rules.  And it may generate an infoset for a document that doesn't
have one if XML 1.1 is not a superset of 1.0 (eg if it makes
unnormalized unicode a well-formedness error).

This might be taken as an argument for requiring 1.0 parsers to reject
1.1 documents.

-- Richard

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member