If the type definition is a simple type definition, then the element information item's attributes must be empty, excepting those whose namespace name is identical to http://www.w3.org/2001/XMLSchema-instance and whose local name is one of type , nil , schemaLocation or noNamespaceSchemaLocation . The negative case uses an element with an extra attribute.
http://www.w3.org/TR/2001/REC-xmlschema-1-20010502/#cElement_Declarations
TEST typedef01201m1 - element of a simple type has schemaLocation, type and nil attributes (valid schema)
| Item | Value |
|---|---|
| title | typedef01201m1 - element of a simple type has schemaLocation, type and nil attributes (valid schema) |
| name | typedef01201m1 |
| source | ../typeDef01201m1.xsd |
| schemaName | ../typeDef01201m1.xsd |
| executeClass | com.sun.jaxb_tck.sigtest.JAXBTest |
| executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName typedef01201m1.sig -PackageWithoutSubpackages $package |
| keywords | schema positive |
| package | javasoft.sqe.tests.elemdecl.typedef.typedef01201m.typedef01201m1 |
| signature | typedef01201m1.sig |
TEST Positive - element of a simple type has schemaLocation, type and nil attributes (valid schema)
| Item | Value |
|---|---|
| title | Positive - element of a simple type has schemaLocation, type and nil attributes (valid schema) |
| name | Positive |
| source | ../typeDef01201m1.xsd |
| schemaName | ../typeDef01201m1.xsd |
| executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest |
| executeArgs | -TestURL $testURL -package $package -out :ref -document ../typeDef01201m1_p.xml -pcontent typedef01201m1-typeDef01201m1_p.jbx |
| keywords | positive document |
| package | javasoft.sqe.tests.elemdecl.typedef.typedef01201m.typedef01201m1 |
| document | ../typeDef01201m1_p.xml |
| jb-context | typedef01201m1-typeDef01201m1_p.jbx |