Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


RE: XML Schema Validation

From: "Michael Kay" <mike@--------.--->
To: <nucci@-------.-->, <xmlschema-dev@--.--->
Date: 1/10/2007 3:36:00 PM
libxml2 seems to be objecting to the fact that BaseTypes.xsd is included
more than once (into both RipostaMacroTypes.xsd and
RichiestaMacroTypes.xsd). The schema spec is pretty vague in this kind of
area, for reasonable reasons: if the two includes used different URIs, it
would be hard for the processor to work out that they were actually two
includes of the same file, and if they were different files, then they would
contain conflicting definitions. But I would have expected any reasonable
processor to allow this case. Raise it with the supplier.

As it happens, Saxon hits a different problem with this schema. It objects
incorrectly to

			<xs:enumeration value="3 ">

on line 1748 of BaseTypes.xsd, saying that it violates maxLength="1". (It
doesn't, in fact, because whiteSpace is set to collapse). Another bug bites
the dust.

Michael Kay
http://www.saxonica.com/
 

> -----Original Message-----
> From: xmlschema-dev-request@w... 
> [mailto:xmlschema-dev-request@w...] On Behalf Of Andrea Nucci
> Sent: 10 January 2007 12:42
> To: xmlschema-dev@w...
> Subject: XML Schema Validation
> 
> I'm using the xml schema and the xml file (Nascita.xml) here attached.
> 
> I've tried to validate the xml file using the W3C Schema Validator
> (http://www.w3.org/2001/03/webdata/xsv) and libxml 2.6.26
> (http://www.xmlsoft.org)
> 
> The results are different:
> - the W3C Schema Validator validates my file
> - libxml2 validator returns "The schema document 
> 'BaseTypes.xsd' cannot be imported, since it was already 
> included or redefined"
> 
> Anyone can help me to understand why this happens? And how to 
> solve or avoid my problem...
> Thank you in advance.
> 
> --
> Andrea Nucci
> Ancitel S.p.A.
> 
> Tel. 06.7887336
> nucci@a...
> 
> http://www.ancitel.it
> 
> 


From nucci@a... Wed Jan 10 16:02:07 2007
Received: from aji.w3.org ([133.27.228.225])


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