Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: RE: RE: unique question

From: "Markus Gamperl" <markus.gamperl@---.-->
To: "Michael Kay" <mike@--------.--->, xmlschema-dev@--.---
Date: 2/14/2007 11:05:00 PM
Very strange... The example I sent to you is a part of a much more bigger and complexer schema. The example file works but the big schema doesn't...

I'll try to check this and get back to you!

Thanks a lot
Markus


-------- Original-Nachricht --------
Datum: Wed, 14 Feb 2007 19:44:09 -0000
Von: "Michael Kay" <mike@s...>
An: "\'Markus Gamperl\'" <markus.gamperl@g...>, xmlschema-dev@w...
CC: 
Betreff: RE: RE: unique question

> Yes, very clear. And it all works.
> 
> Validate -t c:\temp\unique-good.xml c:\temp\unique.xsd
> 
> gives
> 
> Saxon-SA 8.9N from Saxonica
> .NET 1.1.4322.573 on Microsoft Windows NT 5.1.2600.0
> Loading schema document file:/c:/temp/unique.xsd
> Finished loading schema document file:/c:/temp/unique.xsd
> Schema checking successful. Time: 1422 milliseconds
> Processing file:/c:/temp/unique-good.xml
> Execution time: 70 milliseconds
> Validation successful
> 
> while
> 
> Validate -t c:\temp\unique-bad.xml c:\temp\unique.xsd
> 
> gives
> 
> Saxon-SA 8.9N from Saxonica
> .NET 1.1.4322.573 on Microsoft Windows NT 5.1.2600.0
> Loading schema document file:/c:/temp/unique.xsd
> Finished loading schema document file:/c:/temp/unique.xsd
> Schema checking successful. Time: 371 milliseconds
> Processing file:/c:/temp/unique-bad.xml
> Validation error on line 13 column 6 of file:///c:/temp/unique-bad.xml:
>   Non-unique value found for constraint uniquepreis: (11, 0) (See
>   http://www.w3.org/TR/xmlschema-1/#cvc-identity-constraint clause 4.1)
> Validation of source document failed 
> 
> 
> The only thing I changed was to remove the "..." from your instance
> documents, and to add 
> 
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
> <xs:element name="root" type="root"/>
> 
> at the start of your schema, and
> 
> </xs:schema>
> 
> at the end.
> 
> Michael Kay
> http://www.saxonica.com/

-- 
"Feel free" - 10 GB Mailbox, 100 FreeSMS/Monat ...
Jetzt GMX TopMail testen: www.gmx.net/de/go/mailfooter/topmail-out

From markus.gamperl@g... Thu Feb 15 07:47:55 2007
Received: from maggie.w3.org ([193.51.208.68])
	by


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