Declare an attribute of a type derived from ID. Declare an attribute of a type derived from IDREF. Ensure that the second attribute is allowed to refer to a value that is defined by the first attribute defined in the same element information item.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations
TEST idconstrdefs00401m - derived IDREF must refer to an ID that is defined (cyclic) (valid schema)
| Item | Value |
|---|---|
| title | idconstrdefs00401m - derived IDREF must refer to an ID that is defined (cyclic) (valid schema) |
| name | idconstrdefs00401m |
| source | ../idConstrDefs00401m.xsd |
| schemaName | ../idConstrDefs00401m.xsd |
| executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
| executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName idconstrdefs00401m.sig -PackageWithoutSubpackages $package |
| keywords | schema positive |
| package | javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00401m.idconstrdefs00401m |
| signature | idconstrdefs00401m.sig |
TEST idConstrDefs00401m1_p - derived IDREF must refer to an ID that is defined (cyclic) (valid schema)
| Item | Value |
|---|---|
| title | idConstrDefs00401m1_p - derived IDREF must refer to an ID that is defined (cyclic) (valid schema) |
| name | idConstrDefs00401m1_p |
| source | ../idConstrDefs00401m.xsd |
| schemaName | ../idConstrDefs00401m.xsd |
| executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
| executeArgs | -TestURL $testURL -package $package -out :ref -document ../idConstrDefs00401m1_p.xml -pcontent idconstrdefs00401m-idConstrDefs00401m1_p.jbx |
| keywords | positive document |
| package | javasoft.sqe.tests.elemdecl.identityconstraintdefs.idconstrdefs00401m.idconstrdefs00401m |
| document | ../idConstrDefs00401m1_p.xml |
| jb-context | idconstrdefs00401m-idConstrDefs00401m1_p.jbx |