[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Created: (XMLBEANS-97) In xsdconfig namespace/prefix or suffix is ignored if qname@javaname s
From:       "Takeshi Martinez (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2004-12-22 14:24:11
Message-ID: 1505153223.1103725451048.JavaMail.apache () nagoya
[Download RAW message or body]

In xsdconfig namespace/prefix or suffix is ignored if qname@javaname specified
------------------------------------------------------------------------------

         Key: XMLBEANS-97
         URL: http://nagoya.apache.org/jira/browse/XMLBEANS-97
     Project: XMLBeans
        Type: Bug
    Reporter: Takeshi Martinez
    Priority: Trivial


If the xsdconfig qname element is used to create user preferred java type names, the \
resulting interface has an inner interface with the same name with 2 appended. eg. 

xsdconfig file:
<xb:qname name="ns:SCHEMA_NAME" javaname="JavaName"/>

will give,

JavaName source file:
// This is the document
public interface JavaName extends org.apache.xmlbeans.XmlObject {
 ...
    // This is the element
    public interface JavaName2 extends org.apache.xmlbeans.XmlObject
    {
    ...

I thought if I specified a prefix or suffix earlier, in the correct namespace \
element, eg:

xsdconfig file:
    <xb:suffix>Xml</xb:suffix>

I should get,

JavaNameXml source file:
// This is the document
public interface JavaNameXml extends org.apache.xmlbeans.XmlObject {
 ...
    // This is the element
    public interface JavaName extends org.apache.xmlbeans.XmlObject
    {
    ...

I don't, is that normal? Thanks alot.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://nagoya.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic