Define an element. Set fixed="0". Check that the schema is valid.

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


TEST valueconstraint00301m2 - only fixed is present (valid schema)

FILES

ItemValue
title valueconstraint00301m2 - only fixed is present (valid schema)
name valueconstraint00301m2
source ../valueConstraint00301m2.xsd
schemaName ../valueConstraint00301m2.xsd
executeClass com.sun.jaxb_tck.sigtest.JAXBTest
executeArgs -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName valueconstraint00301m2.sig -PackageWithoutSubpackages $package
keywords schema positive
package javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint00301m.valueconstraint00301m2
signature valueconstraint00301m2.sig


TEST Positive - only fixed is present (valid schema)

FILES

ItemValue
title Positive - only fixed is present (valid schema)
name Positive
source ../valueConstraint00301m2.xsd
schemaName ../valueConstraint00301m2.xsd
executeClass javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest
executeArgs -TestURL $testURL -package $package -out :ref -document ../valueConstraint00301m2_p.xml -pcontent valueconstraint00301m2-valueConstraint00301m2_p.jbx
keywords positive document
package javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint00301m.valueconstraint00301m2
document ../valueConstraint00301m2_p.xml
jb-context valueconstraint00301m2-valueConstraint00301m2_p.jbx


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