Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: How to use XInclude with XSD?

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 8/5/2008 1:22:00 PM

Siegfried Heintze wrote:
> I have XInclude working and now I am trying to incorporate it in my xsd 
> file. I extracted xinclude.xsd from 
> http://www.w3.org/TR/2002/CR-xinclude-20020221/#syntax 

That is not the final recommendation. I have not checked whether there 
are any differences to http://www.w3.org/TR/xinclude/#syntax but usually 
it is not a good idea to work with a CR (candidate recommendation) when 
the final recommendation is available.


 > so I would not be
> hitting someone's web site everytime I validated my xml.
> 
> Here is the beginning of my xsd file:
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
> <xs:import namespace="http://www.w3.org/2003/XInclude" 
> schemaLocation="xinclude.xsd"/>
> 
> Here are the errors I am getting from xerces. I'm using xerces just because 
> they have a command line tool I can download. Is there a better Microsoft 
> command line tool?
> 
> [Error] xinclude.xsd:3:62: src-import.3.1: The namespace attribute, 
> 'http://www.w3.org/2003/XInclude', of an <import> element information item 
> must be identical to the targetNamespace attribute, 
> 'http://www.w3.org/2001/XInclude', of the imported document.

Well this one is obvious, the targetNamespace in 
http://www.w3.org/TR/xinclude/#syntax is http://www.w3.org/2001/XInclude 
while your schema has xs:import 
namespace="http://www.w3.org/2003/XInclude". That does not make sense.


-- 

	Martin Honnen --- MVP XML
	http://JavaScript.FAQTs.com/


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