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 targetns00101m2 - Identity-constraint definition identities must be unique: the same namespace (invalid schema)
Item | Value |
---|---|
title | targetns00101m2 - Identity-constraint definition identities must be unique: the same namespace (invalid schema) |
name | targetns00101m2 |
source | ../targetNS00101m2.xsd |
schemaName | ../targetNS00101m2.xsd |
keywords | schema negative |
package | javasoft.sqe.tests.idconstrdefs.targetns.targetns00101m.targetns00101m2 |