Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Attribute wildcard - processContents (XSV and MSXML bug)

From: Kasimier Buchcik <kbuchcik@---------.-->
To: XML-SCHEMA <xmlschema-dev@--.--->
Date: 9/9/2005 12:20:00 PM
Hi,

Due to a funky new security mechanism of the W3C mailing list,
my last message did not reach the list.
I got:
"...Your message has NOT been distributed to the list; before we
distribute it, we need your permission to include your message
in our Web archive of all messages distributed to this list..."

After following the process to permit everything needed, I
read that the message will be transmitted, but I don't see
it transmitted, so I try to repost it. Sorry if the original
message pops up from somewhere in the undefined future.

Potential bug in XSV and MSXML related to builing the
processContents of complete attribute wildcards.

<xs:schema
	xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:attributeGroup name="attrGroup">
		<xs:anyAttribute namespace="##any"/>
	</xs:attributeGroup>
	<xs:element name="foo">
		<xs:complexType>
			<xs:attributeGroup ref="attrGroup"/>=09
			<xs:anyAttribute namespace="##any" processContents="lax"/>=09
		</xs:complexType>
	</xs:element>
</xs:schema>

<foo 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:noNamespaceSchemaLocation="attr-wild.xsd"
	xmlns:b="urn:test:bar"
	b:bar="BAR"
/>

XSV 2.10 and MSXML 4.0 are not happy with this scenario, while
Xerces-J 2.7.1 is. XSV and MSXML become happy if and only if _both_
attribute wildcards are set to a processContents of "lax".

I think only Xerces is working correct here.

In [1] we have:

"2.2.1 If there is an <anyAttribute> present, then a wildcard whose
{process contents} and {annotation} are those of the =B7local wildcard=B7,
and whose {namespace constraint} is..."

[1] http://www.w3.org/TR/xmlschema-1/#Complex_Type_Definition_details

Regards,

Kasimier

From K.Buchcik@4... Fri Sep 09 09:07:49 2005
Received: from wiggum.w3.org ([128.30.52.23])


transparent
Print
Mail
Like It
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