Define a key identity constraint. Define a keyref to that key. Ensure that the keyref field is not allowed to refer to a key that is not defined.

http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations


TEST idconstrdefs00204m - keyref must refer to a key that is defined (valid schema)

FILES

ItemValue
title idconstrdefs00204m - keyref must refer to a key that is defined (valid schema)
name idconstrdefs00204m
source ../idConstrDefs00204m.xsd
schemaName ../idConstrDefs00204m.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName idconstrdefs00204m.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00204m.idconstrdefs00204m
signature idconstrdefs00204m.sig


TEST idConstrDefs00204m1_p - keyref must refer to a key that is defined (valid schema)

FILES

ItemValue
title idConstrDefs00204m1_p - keyref must refer to a key that is defined (valid schema)
name idConstrDefs00204m1_p
source ../idConstrDefs00204m.xsd
schemaName ../idConstrDefs00204m.xsd
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest
executeArgs -TestURL $testURL -package $package -out :ref -document ../idConstrDefs00204m1_p.xml -pcontent idconstrdefs00204m-idConstrDefs00204m1_p.jbx
keywords positive document
package javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00204m.idconstrdefs00204m
document ../idConstrDefs00204m1_p.xml
jb-context idconstrdefs00204m-idConstrDefs00204m1_p.jbx


%Copyright% © 2017, 2020 Oracle and/or its affiliates. All rights reserved.