Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Duplicate attribute uses (Xerces bug?)

From: Kasimier Buchcik <kbuchcik@---------.-->
To: kbuchcik@---------.--
Date: 9/12/2005 5:05:00 PM
Hi,

XSV 2.10 seems to have problems here as well:

attr-2.xsd
----------
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="urn:test:foo"
	xmlns:f="urn:test:foo">

	<xsd:complexType name="base">
		<xsd:attribute name="boo" use="optional"/>
	</xsd:complexType>

	<xsd:complexType name="type-1">
		<xsd:complexContent>
			<xsd:restriction base="f:base">				
				<xsd:attribute name="boo" use="prohibited"/>
				<xsd:attribute name="boo"/>
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>


	<xsd:complexType name="type-2">
		<xsd:attribute name="boo" use="prohibited"/>
		<xsd:attribute name="boo"/>
	</xsd:complexType>

	<xsd:element name="foo" type="f:type-1"/>
</xsd:schema>

attr-2.xml
----------
<foo xmlns="urn:test:foo"
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="urn:test:foo attr-2.xsd"
	boo="lala"/>

XSV:
attr.xml:1,22: undeclared attribute {None}:boo

If we change the type of the element declaration to "f:type-2",
then XSV reports no errors.

This is inconsistent, as one would expect the attribute uses
of "f:type-1" and "f:type-2" to be equal.

Thoughts?

Regards,

Kasimier





From george@s... Mon Sep 12 13:22:49 2005
Received: from maggie.w3.org ([193.51.208.68])
	by frink.w3.o


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent