Define three elements within one substitution group. The first has the same type, the second is derived as restriction and the third derived as extension. All the elments are the memebers of the substitution group. Try to rule out extension by means of {substitution group exclusions} property of the head element declaration.

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


TEST substgrpexcl00202m1 - Rule out extension substitutions (positive case). (valid schema)

FILES

ItemValue
title substgrpexcl00202m1 - Rule out extension substitutions (positive case). (valid schema)
name substgrpexcl00202m1
source ../substGrpExcl00202m1.xsd
schemaName ../substGrpExcl00202m1.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName substgrpexcl00202m1.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.substgroupexclusions.substgrpexcl00202m.substgrpexcl00202m1
signature substgrpexcl00202m1.sig


TEST Positive - Rule out extension substitutions (positive case). (valid schema)

FILES

ItemValue
title Positive - Rule out extension substitutions (positive case). (valid schema)
name Positive
source ../substGrpExcl00202m1.xsd
schemaName ../substGrpExcl00202m1.xsd
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest
executeArgs -TestURL $testURL -package $package -out :ref -document ../substGrpExcl00202m1_p.xml -pcontent substgrpexcl00202m1-substGrpExcl00202m1_p.jbx
keywords positive document
package javasoft.sqe.tests.elemdecl.substgroupexclusions.substgrpexcl00202m.substgrpexcl00202m1
document ../substGrpExcl00202m1_p.xml
jb-context substgrpexcl00202m1-substGrpExcl00202m1_p.jbx


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