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 typedef01202m1 - element of a simple type has noNamespaceSchemaLocation, type and nil attributes (valid schema)
| Item | Value | 
|---|---|
| title | typedef01202m1 - element of a simple type has noNamespaceSchemaLocation, type and nil attributes (valid schema) | 
| name | typedef01202m1 | 
| source | ../typeDef01202m1.xsd | 
| schemaName | ../typeDef01202m1.xsd | 
| executeClass | com.sun.jaxb_tck.sigtest.JAXBTest | 
| executeArgs | -TestURL $testURL -Plugin com.sun.jaxb_tck.sigtest.JaxbPlugin -FileName typedef01202m1.sig -PackageWithoutSubpackages $package | 
| keywords | schema positive | 
| package | javasoft.sqe.tests.elemdecl.typedef.typedef01202m.typedef01202m1 | 
| signature | typedef01202m1.sig | 
TEST Positive - element of a simple type has noNamespaceSchemaLocation, type and nil attributes (valid schema)
| Item | Value | 
|---|---|
| title | Positive - element of a simple type has noNamespaceSchemaLocation, type and nil attributes (valid schema) | 
| name | Positive | 
| source | ../typeDef01202m1.xsd | 
| schemaName | ../typeDef01202m1.xsd | 
| executeClass | javasoft.sqe.tests.api.jakarta.xml.bind.JAXBTest | 
| executeArgs | -TestURL $testURL -package $package -out :ref -document ../typeDef01202m1_p.xml -pcontent typedef01202m1-typeDef01202m1_p.jbx | 
| keywords | positive document | 
| package | javasoft.sqe.tests.elemdecl.typedef.typedef01202m.typedef01202m1 | 
| document | ../typeDef01202m1_p.xml | 
| jb-context | typedef01202m1-typeDef01202m1_p.jbx |