W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2001

RE: element attributes with non-schema namespace

From: David E. Cleary <davec@progress.com>
Date: Wed, 22 Aug 2001 08:57:06 -0400
To: "D Gross" <justdave@onebox.com>, <xmlschema-dev@w3.org>
> I have a question about attributes with a non-schema namespace in an
> xsd:element definition.  For example, I want to add an attribute "my:attr"
> in the following way:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> elementFormDefault="qualified"
> xmlns:my="http://my.name.space">
> 	<xsd:element name="test" my:attr="something"/>
> </xsd:schema>
> Seems the CR XML Schema does not allow this, at least according to a
> couple of tools that I have tried using to validate the schema:
> "This file is not valid: Unexpected attribute 'my:attr' in
> element 'xsd:element'"

Yes, this is allowed and the tools you are using are incorrect. What tools
are they?

Received on Wednesday, 22 August 2001 08:57:09 UTC

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