The blocking constraint must not contain substitution for an element declaration to be validly substituteable for another element declaration. In the test any substitution for element Head is allowed.

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


TEST disallowedsubst00301m1 - substitution is allowed (valid schema)

FILES

ItemValue
title disallowedsubst00301m1 - substitution is allowed (valid schema)
name disallowedsubst00301m1
source ../disallowedSubst00301m1.xsd
schemaName ../disallowedSubst00301m1.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName disallowedsubst00301m1.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.disallowedsubst.disallowedsubst00301m.disallowedsubst00301m1
signature disallowedsubst00301m1.sig


TEST Positive - substitution is allowed (valid schema)

FILES

ItemValue
title Positive - substitution is allowed (valid schema)
name Positive
source ../disallowedSubst00301m1.xsd
schemaName ../disallowedSubst00301m1.xsd
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest
executeArgs -TestURL $testURL -package $package -out :ref -document ../disallowedSubst00301m1_p.xml -pcontent disallowedsubst00301m1-disallowedSubst00301m1_p.jbx
keywords positive document
package javasoft.sqe.tests.elemdecl.disallowedsubst.disallowedsubst00301m.disallowedsubst00301m1
document ../disallowedSubst00301m1_p.xml
jb-context disallowedsubst00301m1-disallowedSubst00301m1_p.jbx


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