Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: RE: RE: RE: unique question

From: "Markus Gamperl" <markus.gamperl@---.-->
To: "Michael Kay" <mike@--------.--->, xmlschema-dev@--.---
Date: 2/15/2007 11:54:00 AM
Hi Michael!

You are totally right! After defining a xmlns:x prefix in my schema (analog to my default namespace) and adding the prefix in my constraint defintion, validation works well!

<xs:unique name="uniquepreis">
 <xs:selector xpath="x:preiszeile"/>
 <xs:field xpath="x:zweig"/>
 <xs:field xpath="x:herkunft"/>
</xs:unique> 

But why isn't the default namespace enough within xs:unique? Is this the definition of xs:unique? What's the sense of the default namespace...

Thanks a lot!
Markus


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

> 
> > Now validate it again and your bad file will be shown as 
> > valid file. This must be namespace problem - do you have an idea?
> 
> If your elements are in a namespace, then the path expressions used in
> defining the constraint need to use prefixed element names.
> 
> Michael Kay
> http://www.saxonica.com/
> 

-- 
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: www.gmx.net/de/go/mailfooter/promail-out

From mike@s... Thu Feb 15 10:30:54 2007
Received: from lisa.w3.or


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