W3C home > Mailing lists > Public > public-xml-core-wg@w3.org > August 2004

Re: Problem with xml:space in the Schema document for the XML namespace

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Wed, 18 Aug 2004 16:51:04 +0100
To: Masayasu Ishikawa <mimasa@w3.org>(by way of Paul Grosso <pgrosso@arbortext.com>)
Cc: XML Core WG <public-xml-core-wg@w3.org>
Message-ID: <f5bfz6kmolz.fsf@erasmus.inf.ed.ac.uk>

Masayasu Ishikawa <mimasa@w3.org> writes:

> Dear XML Core Working Group,
> I'm contacting you on behalf of the HTML Working Group.  If I understand
> correctly, you are now in charge of the Schema document for the XML
> namespace at http://www.w3.org/2001/xml.xsd [1].
> This Schema provides a default value of "preserve" for the xml:space
> attribute
> . . .
> We believe such an implementation of the XML Schema prohibits an XML
> application, such as XHTML (using XML Schemas and including the xml.xsd
> for XML attributes), from defining a fixed value for xml:space to be
> "preserve", as XML Schema does not allow an attribute to have both
> a default value and a fixed value.

Sorry for the confusion, and the Core WG will indeed reconsider this
declaration.  However it is not the case that you cannot specify a
fixed value for this attribute as it stands.  The following is a valid
schema document corresponding to a valid schema:

  <xs:import namespace="http://www.w3.org/XML/1998/namespace"
  <xs:complexType name="spaceTest" mixed="true">
   <xs:attribute ref="xml:space" fixed="default"/>


Please let me know if this addresses your immediate difficulty.

 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
Received on Wednesday, 18 August 2004 15:51:05 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:33 UTC