W3C home > Mailing lists > Public > xmlschema-dev@w3.org > November 2000

Re: Problem with qualified namespaces and xsv

From: Eric van der Vlist <vdv@dyomedea.com>
Date: Tue, 07 Nov 2000 21:29:39 +0100
Message-ID: <3A086633.668C476C@dyomedea.com>
To: "xmlschema-dev@w3.org" <xmlschema-dev@w3.org>
I don't know if the problem is related or not, but:

<xsd:schema
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
	xmlns:xml="http://www.w3.org/XML/1998/namespace"
	targetNamespace='http://www.w3.org/XML/1998/namespace'
	attributeFormDefault="unqualified">

	<xsd:attribute name="lang" type="xsd:language"/>
	
</xsd:schema>

works fine (I can reference a xml:lang attribute), while:

<xsd:schema
    xmlns:xsd="http://www.w3.org/2000/10/XMLSchema"
	xmlns:xml="http://www.w3.org/XML/1998/namespace"
	targetNamespace='http://www.w3.org/XML/1998/namespace'
	attributeFormDefault="unqualified">

	<xsd:attribute name="xml:lang" type="xsd:language"/>
	
</xsd:schema>

gives you an error:

<schemaError char='8' line='15' phase='instance'
resource='file:/C:/Java/Formations/xmlschemas/library-2ns1.xsd'>Undeclared
attribute xml{http://www.w3.org/XML/1998/namespace}:lang
referenced</schemaError>

Eric
-- 
------------------------------------------------------------------------
Eric van der Vlist       Dyomedea                    http://dyomedea.com
http://xmlfr.org         http://4xt.org              http://ducotede.com
------------------------------------------------------------------------
Received on Tuesday, 7 November 2000 15:30:00 GMT

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