Two elements are declared. The second one has type derived by restriction from type of the first element. Blockong constraints of the first element is empty, so the second element is substitutable for the first one.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations
TEST disallowedsubst00501m1 - no blocking constraints (valid schema)
Item | Value |
---|---|
title | disallowedsubst00501m1 - no blocking constraints (valid schema) |
name | disallowedsubst00501m1 |
source | ../disallowedSubst00501m1.xsd |
schemaName | ../disallowedSubst00501m1.xsd |
executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName disallowedsubst00501m1.sig -PackageWithoutSubpackages $package |
keywords | schema positive |
package | javasoft.sqe.tests.elemdecl.disallowedsubst.disallowedsubst00501m.disallowedsubst00501m1 |
signature | disallowedsubst00501m1.sig |
TEST Positive - no blocking constraints (valid schema)
Item | Value |
---|---|
title | Positive - no blocking constraints (valid schema) |
name | Positive |
source | ../disallowedSubst00501m1.xsd |
schemaName | ../disallowedSubst00501m1.xsd |
executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
executeArgs | -TestURL $testURL -package $package -out :ref -document ../disallowedSubst00501m1_p.xml -pcontent disallowedsubst00501m1-disallowedSubst00501m1_p.jbx |
keywords | positive document |
package | javasoft.sqe.tests.elemdecl.disallowedsubst.disallowedsubst00501m.disallowedsubst00501m1 |
document | ../disallowedSubst00501m1_p.xml |
jb-context | disallowedsubst00501m1-disallowedSubst00501m1_p.jbx |