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

W3C xml.xsd schema

From: zze-MARCHEGAY Michael stagiaire FTRD/DTL/LAN <michael.marchegay@rd.francetelecom.com>
Date: Fri, 26 Apr 2002 17:01:28 +0200
Message-ID: <0489A7888F080B4BA73B53F7E145F29A1B0AB6@LANMHS20.rd.francetelecom.fr>
To: <xmlschema-dev@w3.org>
Hi,

I'm a newbie at XML Schema and I don't understand all the stuff about namespaces.

In the schema joined to this mail (a simplified version of http://www.w3.org/2001/xml.xsd),
are the attributes contained by specialAttrs referencing the one that are defined
in the same schema ?

If it is the case, why isn't there an xmlns:xml="http://www.w3.org/XML/1998/namespace" 
attribute for the schema ?

<?xml version='1.0'?>
<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace" xmlns:xs="http://www.w3.org/2001/XMLSchema" xml:lang="en">

 <xs:attribute name="lang" type="xs:language"/>

 <xs:attribute name="space" default="preserve">
  <xs:simpleType>
   <xs:restriction base="xs:NCName">
    <xs:enumeration value="default"/>
    <xs:enumeration value="preserve"/>
   </xs:restriction>
  </xs:simpleType>
 </xs:attribute>

 <xs:attribute name="base" type="xs:anyURI"/>

 <xs:attributeGroup name="specialAttrs">
  <xs:attribute ref="xml:base"/>
  <xs:attribute ref="xml:lang"/>
  <xs:attribute ref="xml:space"/>
 </xs:attributeGroup>

</xs:schema>

Thanks.

--
MichaŽl Marchegay, Stagiaire France Telecom R&D du 11/02/2002 au 26/07/2002
Sous la responsabilitť d'Olivier Dubuisson
DTL/TAL - 22307 Lannion Cedex - France
Received on Friday, 26 April 2002 16:35:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:30 GMT