Venkat, The "name" attribute is defined in the commonj.sdo/xml namespace. You can find it in the sdoXML.xsd under Tuscany/java/spec/sdo/src/main/resources/xml directory. The prefix of "name" attribute can be defined in your XSD with your choice as xmlns:sdoXML="commonj.sdo/xml" or xmlns:sdo="commonj.sdo/xml" or xmlns:myownprefix="commonj.sdo/xml" In the spec, xmlns:sdo is used. "instanceClass" attribute is defined in the sdoJava.xsd under the same directory. It's used to specify the implementation class of your defined type not for overriding the name of the type. Hope this would help. Fuhwei Lwo
Venkata Krishnan <[EMAIL PROTECTED]> wrote: Hi, In the XSD in the prev. mails I see the sdo annotation called sdoXML:name. Is this in the specs? To the best of my knowledge the annotation to be used there, as per the specs is 'sdoJava:instanceClass'. Please clarify. Thanks - Venkat On 8/5/06, Yang ZHONG (JIRA) wrote: > > [ > http://issues.apache.org/jira/browse/TUSCANY-576?page=comments#action_12425944] > > Yang ZHONG commented on TUSCANY-576: > ------------------------------------ > > The Java version of SDO spec 2.01says "The XSD names are preserved in the > Type and Property. Use the sdo:name override to > modify names as an option to remove duplicate names, blank names, or names > with > special characters." (XSD Mapping Details on page 104) > > Thank Fuhwei for having verified that sdo:name works, and I agree with > Jeremy that the issue is resolved (by using sdo:name) and we can close the > JIRA. > > > 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: > > > > 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] > >