Declare an element. Define a key identity constraint and a keyref to that key inside the element declaration. Declare another element with the same key and keyref. Check that if the second element declaration is in the same namespace, that the schema is invalid, otherwise it is valid.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cIdentity-constraint_Definitions
TEST targetns00101m1 - Identity-constraint definition identities must be unique: different namespaces (valid schema)
Item | Value |
---|---|
title | targetns00101m1 - Identity-constraint definition identities must be unique: different namespaces (valid schema) |
name | targetns00101m1 |
source | ../targetNS00101m1.xsd |
schemaName | ../targetNS00101m1.xsd |
executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName targetns00101m1.sig -PackageWithoutSubpackages $package |
keywords | schema positive |
package | javasoft.sqe.tests.idconstrdefs.targetns.targetns00101m.targetns00101m1 |
signature | targetns00101m1.sig |
TEST Positive - Identity-constraint definition identities must be unique: different namespaces (valid schema)
Item | Value |
---|---|
title | Positive - Identity-constraint definition identities must be unique: different namespaces (valid schema) |
name | Positive |
source | ../targetNS00101m1.xsd |
schemaName | ../targetNS00101m1.xsd |
executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
executeArgs | -TestURL $testURL -package $package -out :ref -document ../targetNS00101m1_p.xml -pcontent targetns00101m1-targetNS00101m1_p.jbx |
keywords | positive document |
package | javasoft.sqe.tests.idconstrdefs.targetns.targetns00101m.targetns00101m1 |
document | ../targetNS00101m1_p.xml |
jb-context | targetns00101m1-targetNS00101m1_p.jbx |