Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Including schema with target namespace from schema with no target namespace

From: "C. M. Sperberg-McQueen" <cmsmcq@-------------.--->
To: bkline@---------.---
Date: 2/18/2009 12:47:00 PM
On 10 Feb 2009, at 07:03 , Bob Kline wrote:

>
> Tobias Koenig wrote:
>> If the target namespace of the 'to be included' schema differs from  
>> the
>> target namespace of the including schema, you have to use <import>  
>> instead of <include>.
>>
>
> Ah, yes.  I missed that.  Thanks very much.

Or, even simpler, just give the schema validator the names of both
schema documents to load, at validation (or schema-compile) time.

For xmllint, for example, you might say

   xmllint --schema main.xsd --schema cdr.xsd instance.xml

For Saxon 9 SA,

   java -cp ... com.saxonica.Validate -s:instance.xml - 
xsd:main.xsd;cdr.xsd

For Xerces-J,

   java -cp ... jaxp.SourceValidator -i instance.xml -a main.xsd cdr.xsd

and so on.  The only XSD validator I know of that doesn't support
the specification of multiple schema documents on the command line is
MSV.

Michael Sperberg-McQueen


-- 
****************************************************************
* C. M. Sperberg-McQueen, Black Mesa Technologies LLC
* http://www.blackmesatech.com
* http://cmsmcq.com/mib
* http://balisage.net
****************************************************************





From bkline@r... Thu Feb 19 04:31:55 2009
Received: from maggie.w3.org ([1


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