[ 
http://issues.apache.org/jira/browse/TUSCANY-576?page=comments#action_12425827 
] 
            
Fuhwei Lwo commented on TUSCANY-576:
------------------------------------

I have just verified the following work.  The newly generated Java class name 
for the Quote type will be MyQuote.java and MyQuoteImpl.java.

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema 
  targetNamespace="http://www.example.com/simple";
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"; 
        xmlns:sdoXML="commonj.sdo/xml"
  xmlns:simple="http://www.example.com/simple";> 
  
   <xsd:element name="stockQuote" type="simple:Quote"/>
   
   <xsd:complexType name="Quote" sdoXML:name="MyQuote">
       <xsd:sequence>
          <xsd:element name="symbol" type="xsd:string"/>
          <xsd:element name="companyName" type="xsd:string"/>
          <xsd:element name="price" type="xsd:decimal"/>
          <xsd:element name="open1" type="xsd:decimal"/>
          <xsd:element name="high" type="xsd:decimal"/>
          <xsd:element name="low" type="xsd:decimal"/>
          <xsd:element name="volume" type="xsd:double"/>
          <xsd:element name="change1" type="xsd:double"/>
          <xsd:element name="quotes" type="simple:Quote" minOccurs="0" 
maxOccurs="unbounded"/>
       </xsd:sequence>
   </xsd:complexType>

</xsd:schema>

> Bad java class name when XSD name contains dot ('.') characters.
> ----------------------------------------------------------------
>
>                 Key: TUSCANY-576
>                 URL: http://issues.apache.org/jira/browse/TUSCANY-576
>             Project: Tuscany
>          Issue Type: Bug
>          Components: Java SDO Tools
>    Affects Versions: Java-M2
>            Reporter: Mauro Franceschini
>
> I've generated java interface and classes starting from an XML Schema file 
> that contains the following complex type declaration:
> <xs:complexType name="CBIBonOrd.001.03">
> The result is a java source file named CBIBonOrd.001.03.java that has a wrong 
> name "CBIBonOrd.001.03".

-- 
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