![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - Re: RE: unique question >Thread Next - Re: RE: RE: unique question RE: RE: unique questionTo: "'Markus Gamperl'" <markus.gamperl@---.-->, <xmlschema-dev@--.---> Date: 2/14/2007 7:44:00 PM 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/ From markus.gamperl@g... Wed Feb 14 21:05:25 2007 Received: from maggie.w3.org ([19 | ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
