Declare an element. Set type="answer" fixed="true". The content type of type answer allows only "true". Check that the schema is valid.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations
TEST valueconstraint00402m7 - fixed value is set for a simple type (valid schema)
| Item | Value | 
|---|---|
| title | valueconstraint00402m7 - fixed value is set for a simple type (valid schema) | 
| name | valueconstraint00402m7 | 
| source | ../valueConstraint00402m7.xsd | 
| schemaName | ../valueConstraint00402m7.xsd | 
| executeClass | com.sun.jaxb_tck.sigtest.JAXBTest | 
| executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName valueconstraint00402m7.sig -PackageWithoutSubpackages $package | 
| keywords | schema positive | 
| package | javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint00402m.valueconstraint00402m7 | 
| signature | valueconstraint00402m7.sig | 
TEST Positive - fixed value is set for a simple type (valid schema)
| Item | Value | 
|---|---|
| title | Positive - fixed value is set for a simple type (valid schema) | 
| name | Positive | 
| source | ../valueConstraint00402m7.xsd | 
| schemaName | ../valueConstraint00402m7.xsd | 
| executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest | 
| executeArgs | -TestURL $testURL -package $package -out :ref -document ../valueConstraint00402m7_p.xml -pcontent valueconstraint00402m7-valueConstraint00402m7_p.jbx | 
| keywords | positive document | 
| package | javasoft.sqe.tests.elemdecl.valueconstraint.valueconstraint00402m.valueconstraint00402m7 | 
| document | ../valueConstraint00402m7_p.xml | 
| jb-context | valueconstraint00402m7-valueConstraint00402m7_p.jbx |