[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Use of blockDefault="#all"

From: David Carver <d_a_carver@yahoo.com>
Date: Fri, 09 Nov 2007 16:41:13 -0500
Message-ID: <4734D3F9.2080507@yahoo.com>
To: xmlschema-dev@w3.org
Use of blockDefault="#all"

I think I'm running into an interpretation issue by the various XML 
tools on how to handle #all value for block and blockDefault attributes.

It appears that xsi:types are still allowed to appear in a document if 
the type value is the same as the value defined for an element.  Some 
data binding tools seem to be outputing xsi:types when not necessary and 
this is causing some tool interoperability issues.

Xerces 2.8.1 and 2.9 seem to allow xsi:type to be included, as to XML 
Spy (I take with a grain of salt).   I'm curious how Saxon interprets 
the #all value.

My interpretation would be that xsi:type would not be allowed at all in 
the xml instance if a schema has the blockDefault attribute set to #all, 
but it seems that, isn't the case at least with Xerces.

Dave
Received on Friday, 9 November 2007 21:41:31 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.