Two elements are declared. The second one has type derived by extension from type of the first element. Blockong constraints of the first element contain 'restriction extension', so the second element is not substitutable for the first one.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations
TEST disallowedsubst00502m4 - complex type substitution: extension and restriction are blocked (valid schema)
Item | Value |
---|---|
title | disallowedsubst00502m4 - complex type substitution: extension and restriction are blocked (valid schema) |
name | disallowedsubst00502m4 |
source | ../disallowedSubst00502m4.xsd |
schemaName | ../disallowedSubst00502m4.xsd |
executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName disallowedsubst00502m4.sig -PackageWithoutSubpackages $package |
keywords | schema positive |
package | javasoft.sqe.tests.elemdecl.disallowedsubst.disallowedsubst00502m.disallowedsubst00502m4 |
signature | disallowedsubst00502m4.sig |