If 'default' and 'use' are both present, 'use' must have the actual value 'optional'.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cAttribute_Declarations
TEST ad_valconstr00201m3 - Attribute with 'default' value and "optional" 'use' is declared entirely within element declaration (valid schema)
Item | Value |
---|---|
title | ad_valconstr00201m3 - Attribute with 'default' value and "optional" 'use' is declared entirely within element declaration (valid schema) |
name | ad_valconstr00201m3 |
source | ../AD_valConstr00201m3.xsd |
schemaName | ../AD_valConstr00201m3.xsd |
executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName ad_valconstr00201m3.sig -PackageWithoutSubpackages $package |
keywords | schema positive |
package | javasoft.sqe.tests.attrdecl.ad_valconstr.ad_valconstr00201m.ad_valconstr00201m3 |
signature | ad_valconstr00201m3.sig |
TEST Positive - Attribute with 'default' value and "optional" 'use' is declared entirely within element declaration (valid schema)
Item | Value |
---|---|
title | Positive - Attribute with 'default' value and "optional" 'use' is declared entirely within element declaration (valid schema) |
name | Positive |
source | ../AD_valConstr00201m3.xsd |
schemaName | ../AD_valConstr00201m3.xsd |
executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
executeArgs | -TestURL $testURL -package $package -out :ref -document ../AD_valConstr00201m3_p.xml -pcontent ad_valconstr00201m3-AD_valConstr00201m3_p.jbx |
keywords | positive document |
package | javasoft.sqe.tests.attrdecl.ad_valconstr.ad_valconstr00201m.ad_valconstr00201m3 |
document | ../AD_valConstr00201m3_p.xml |
jb-context | ad_valconstr00201m3-AD_valConstr00201m3_p.jbx |