W3C home > Mailing lists > Public > xmlschema-dev@w3.org > October 2002

comments and pi inside simple content

From: Tom Moog <tmoog@sarvega.com>
Date: Thu, 03 Oct 2002 14:12:36 -0500
Message-ID: <3D9C96A4.D7FC0763@sarvega.com>
CC: xmlschema-dev@w3.org

In 3.1.4 of Structures, it states that comments and pi are ignored
when constructing the content of an element.  This does not appear
to depend on whether the content is simple or complex.  Thus

     <number>1<!-- this is a comment -->2</number>

is the same as <number>12</number> for purposes of validation.

This seems rather counter-intuitive.  It also conflicts with the
way xslt and other xml processors handle content - they would
treat the "1" and the "2" as separate text items.

Do I correctly understand the document, or did I miss something ?
Received on Thursday, 3 October 2002 15:16:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 14:55:58 UTC