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


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:


The schema:

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

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

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


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

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:03 UTC