Altova Mailing List Archives>Archive Index >xmlschema-dev Archive Home >Recent entries >Thread Prev - RE: RE: RE: unique question >Thread Next - RE: RE: RE: RE: unique question Re: RE: RE: RE: unique questionTo: "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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
