Define one local that refers to a global one. Omit maxOccurs attribute. Check that the value of the {maxOccurs} property is 1.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations
TEST maxoccurs00201m - Default value of the {maxOccurs} property when the ref attribute is used. (valid schema)
Item | Value |
---|---|
title | maxoccurs00201m - Default value of the {maxOccurs} property when the ref attribute is used. (valid schema) |
name | maxoccurs00201m |
source | ../maxOccurs00201m.xsd |
schemaName | ../maxOccurs00201m.xsd |
executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName maxoccurs00201m.sig -PackageWithoutSubpackages $package |
keywords | schema positive |
package | javasoft.sqe.tests.elemdecl.maxoccurs.maxoccurs00201m.maxoccurs00201m |
signature | maxoccurs00201m.sig |
TEST maxOccurs00201m1_p - Default value of the {maxOccurs} property when the ref attribute is used. (valid schema)
Item | Value |
---|---|
title | maxOccurs00201m1_p - Default value of the {maxOccurs} property when the ref attribute is used. (valid schema) |
name | maxOccurs00201m1_p |
source | ../maxOccurs00201m.xsd |
schemaName | ../maxOccurs00201m.xsd |
executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
executeArgs | -TestURL $testURL -package $package -out :ref -document ../maxOccurs00201m1_p.xml -pcontent maxoccurs00201m-maxOccurs00201m1_p.jbx |
keywords | positive document |
package | javasoft.sqe.tests.elemdecl.maxoccurs.maxoccurs00201m.maxoccurs00201m |
document | ../maxOccurs00201m1_p.xml |
jb-context | maxoccurs00201m-maxOccurs00201m1_p.jbx |