Declare an attribute of a type derived from ID. Declare an attribute of a type derived from IDREF. Ensure that the second attribute is not allowed to refer to a value that is not defined by the first attribute.

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


TEST idconstrdefs00402m - derived IDREF must refer to an ID that is defined (valid schema)

FILES

ItemValue
title idconstrdefs00402m - derived IDREF must refer to an ID that is defined (valid schema)
name idconstrdefs00402m
source ../idConstrDefs00402m.xsd
schemaName ../idConstrDefs00402m.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName idconstrdefs00402m.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00402m.idconstrdefs00402m
signature idconstrdefs00402m.sig


TEST idConstrDefs00402m1_p - derived IDREF must refer to an ID that is defined (valid schema)

FILES

ItemValue
title idConstrDefs00402m1_p - derived IDREF must refer to an ID that is defined (valid schema)
name idConstrDefs00402m1_p
source ../idConstrDefs00402m.xsd
schemaName ../idConstrDefs00402m.xsd
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest
executeArgs -TestURL $testURL -package $package -out :ref -document ../idConstrDefs00402m1_p.xml -pcontent idconstrdefs00402m-idConstrDefs00402m1_p.jbx
keywords positive document
package javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00402m.idconstrdefs00402m
document ../idConstrDefs00402m1_p.xml
jb-context idconstrdefs00402m-idConstrDefs00402m1_p.jbx


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