I have find, when i use xs:ID for my id (instead of xs:unsignedInt) It works
Thanks 2007/11/12, barbapapaz <[EMAIL PROTECTED]>: > 2007/11/9, David Bertoni <[EMAIL PROTECTED]>: > > barbapapaz wrote: > > > Hello > > > > > > I use a dom builder and I have a problem with a key to validate an id in > > > more than one element. > > > > > > This key don't work > > > <xs:key name="IdKey"> > > > <xs:selector xpath="./book/chapter|./book/page"/> > > > <xs:field xpath="@Id"/> > > > </xs:key> > > What doesn't work? > > > precisely validation with more than one path in selector don't work > with DOMBuilder of xerces. I try with xerces example callled DOMCount > and my xsd. > > > > > > but this work > > > <xs:key name="IdKey"> > > > <xs:selector xpath="./book/page"/> > > > <xs:field xpath="@Id"/> > > > </xs:key> > > > > > > I deduce that | isn't possible in the selector. > > That's not true: > > > > http://www.w3.org/TR/xmlschema-1/#coss-identity-constraint > Thanks but I know this reference. My problem is only with xerces > because he don't understand more than one path in selector. > > > > Perhaps if you provided more information, like a small document and schema, > > or even just more details about what's not working, someone can help. > > > > Dave > > > > Thanks for your help >
