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

SV: SV: SV: strict validation of any ##other namespace

From: Bryan Rasmussen <brs@itst.dk>
Date: Mon, 10 Oct 2005 10:01:49 +0200
Message-ID: <D45A5694803BE943BA46F9A7262BF83D123A81@its42.itst.local>
To: 'Kasimier Buchcik' <K.Buchcik@4commerce.de>
Cc: "'xmlschema-dev@w3.org'" <xmlschema-dev@w3.org>
xsd import strict validation




Hi

>> The question then is what LibXML2's response is if the instance document
>> does not have a namespace matching the schema targetNamespace. One could
>> create a schema, programmatically, with a targetNamespace not in the
>> instance document and import the other namespaces in. 

>I assume you are referring to your example here, where we have a strict
>element-wildcard, which hits an element information item in a namespace
>not currently imported.


No, I was thinking that there would be a schema


<?xml version="1.0" encoding="UTF-8"?>
<schema  
xmlns="http://www.w3.org/2001/XMLSchema"
 elementFormDefault="qualified" attributeFormDefault="unqualified">
<import namespace="http://test.com" schemaLocation="schema1.xsd"/>
<import namespace="http://test.org" schemaLocation="schema2.xsd"/>

</schema>

and there would not be anything in the empty namespace. 

Would libxml2 support this? I've found that .Net and XSV support it, but
msxml does not, and as I understand it XMLSPY won't either.  

Cheers
Bryan Rasmussen
Received on Monday, 10 October 2005 08:08:51 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.