Two elements are declared. The second one has type derived by restriction from type of the first element. Prohibiting substitutions of the first element's type contain '#all', so the second element is not substitutable for the first one.

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


TEST disallowedsubst00503m5 - derived by restriction: prohibiting substitutions contains '#all' (valid schema)

FILES

ItemValue
title disallowedsubst00503m5 - derived by restriction: prohibiting substitutions contains '#all' (valid schema)
name disallowedsubst00503m5
source ../disallowedSubst00503m5.xsd
schemaName ../disallowedSubst00503m5.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName disallowedsubst00503m5.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.disallowedsubst.disallowedsubst00503m.disallowedsubst00503m5
signature disallowedsubst00503m5.sig


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