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

ignorable white space with anyType restriction

From: Tom Moog <tmoog@sarvega.com>
Date: Wed, 03 Jul 2002 13:53:52 -0500
Message-ID: <3D234840.7F8077AA@sarvega.com>
CC: xmlschema-dev@w3.org


Hello,

Suppose a type t is based on a restriction of anyType
(see below).   Although anyType has mixedContent
true, this is not inherited, so type t does not allow
mixed content.

Now consider the following instance document
with element e of type t.  There is a newline and
several spaces between <e> and </e>.  Is this
legal because it is ignorable white space or
illegal because it is not ignorable white space ?

The instance document:

<e>
   </e>

The schema:

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" >

<xs:complexType name="t">
  <xs:complexContent>
    <xs:restriction base="xs:anyType">
    </xs:restriction>
  </xs:complexContent>
</xs:complexType>

<xs:element name="e" type="t" />

</xs:schema>

Tom Moog
Sarvega, Inc.
Received on Wednesday, 3 July 2002 14:53:54 UTC

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