[ http://issues.apache.org/jira/browse/JAXME-52?page=comments#action_65176 
]
     
Jochen Wiedmann commented on JAXME-52:
--------------------------------------

The schemaBindings element allows to specify a suffix for element names, as in

    <jaxb:schemaBindings>
      <jaxb:nameXmlTransform>
        <jaxb:typeName prefix='b' suffix='a'/>
      </jaxb:nameXmlTransform>
    </jaxb:schemaBindings>

This is an untested feature, though. If it doesn't work, please create a 
separate issue.



> problem with element name that ends with TYPE string?
> -----------------------------------------------------
>
>          Key: JAXME-52
>          URL: http://issues.apache.org/jira/browse/JAXME-52
>      Project: JaxMe
>         Type: Bug
>  Environment: Windows2000 SP4, jaxme 0.3.1, j2re 1.4.2_02
>     Reporter: HO CHEE YONG
>     Priority: Minor

>
> When I generate Java Code with the my schema (which contains 2 element card 
> and cardtype), I get CARD.java, CARDType.java and CARDTYPEType.java files 
> generated by the jaxme binding compiler. But in the CARDType.java, I actually 
> get 'public interface CARDTYPE ' and not 'public interface CARDType '. Is 
> jaxme has problem with element that ends with 'TYPE' string. 
> my schema:
> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema";>
>       <xs:element name="CARDTYPE">
>               <xs:complexType>
>                       <xs:attribute name="ID" type="xs:string" use="required" 
> />
>                       <xs:attribute name="NAME" type="xs:string" 
> use="optional" />
>               </xs:complexType>
>       </xs:element>
>       <xs:element name="CARD">
>               <xs:complexType>
>                       <xs:sequence>
>                               <xs:element ref="CARDTYPE" minOccurs="0" />
>                       </xs:sequence>
>                       <xs:attribute name="FULLNAME" type="xs:string" 
> use="optional" />
>                       <xs:attribute name="FSNAME" type="xs:string" 
> use="optional" />
>                       <xs:attribute name="NAME" type="xs:string" 
> use="required" />
>               </xs:complexType>
>       </xs:element>
> </xs:schema>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to