You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Randy Thornton (JIRA)" <xm...@xml.apache.org> on 2005/04/06 21:27:24 UTC

[jira] Created: (XMLBEANS-143) package name of generated code doesn't match targetNamespace

package name of generated code doesn't match targetNamespace
------------------------------------------------------------

         Key: XMLBEANS-143
         URL: http://issues.apache.org/jira/browse/XMLBEANS-143
     Project: XMLBeans
        Type: Bug
  Components: Compiler  
    Versions: Version 2 Beta 1    
 Environment: Win XP, jdk1.4_2_03
    Reporter: Randy Thornton



<?xml version="1.0" encoding="UTF-8"?>
<xs:schema targetNamespace="http://www.perfretail.com/k2v1/report/schemas" 
	xmlns:rs="http://www.perfretail.com/k2v1/report/schemas" 
	xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
</xs:schema>

Note the package name contails k2v1 with a lowercase v.  The generated classes contain an uppercase V and the directory structure created contains uppercase V also.

package com.perfretail.k2V1.report.schemas;







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


[jira] Closed: (XMLBEANS-143) package name of generated code doesn't match targetNamespace

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-143?page=history ]
     
Jacob Danner closed XMLBEANS-143:
---------------------------------

    Resolution: Won't Fix

User is fine with the workaround. Closing

> package name of generated code doesn't match targetNamespace
> ------------------------------------------------------------
>
>          Key: XMLBEANS-143
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-143
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 1
>  Environment: Win XP, jdk1.4_2_03
>     Reporter: Randy Thornton

>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:rs="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> </xs:schema>
> Note the package name contails k2v1 with a lowercase v.  The generated classes contain an uppercase V and the directory structure created contains uppercase V also.
> package com.perfretail.k2V1.report.schemas;

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


[jira] Commented: (XMLBEANS-143) package name of generated code doesn't match targetNamespace

Posted by "Alexander Papaspyrou (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-143?page=comments#action_12432597 ] 
            
Alexander Papaspyrou commented on XMLBEANS-143:
-----------------------------------------------

I feel that this bug should fixed properly. I know of several people who failed deliberately using XMLBeans just because, by chance, their namespace statement contains numbers, and probably it's not their fault.

So documenting this issue in the farthest corners of Jira doesn't seem to be sufficient. Please reopen.

> package name of generated code doesn't match targetNamespace
> ------------------------------------------------------------
>
>                 Key: XMLBEANS-143
>                 URL: http://issues.apache.org/jira/browse/XMLBEANS-143
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: Version 2 Beta 1
>         Environment: Win XP, jdk1.4_2_03
>            Reporter: Randy Thornton
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:rs="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> </xs:schema>
> Note the package name contails k2v1 with a lowercase v.  The generated classes contain an uppercase V and the directory structure created contains uppercase V also.
> package com.perfretail.k2V1.report.schemas;

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-143) package name of generated code doesn't match targetNamespace

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-143?page=comments#action_62310 ]
     
Radu Preotiuc-Pietro commented on XMLBEANS-143:
-----------------------------------------------

In theory, you are right. At the time, we had to pick an algorithm for turning Xml names into Java package names, and this is what we picked. Now, there are probably better options around, but it would cause a real backwards compatibility problem if we changed the way we generate default names.
Maybe in the future we can add an XmlOption saying "use XmlBeansV1 default naming or JAXB2 default naming or JAX-RPC or what have you", but the default style has to be XmlBeansV1.
If you really care about the name that gets generated, you should probably use an .xsdconfig file to specifically map the names.


> package name of generated code doesn't match targetNamespace
> ------------------------------------------------------------
>
>          Key: XMLBEANS-143
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-143
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 1
>  Environment: Win XP, jdk1.4_2_03
>     Reporter: Randy Thornton

>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:rs="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> </xs:schema>
> Note the package name contails k2v1 with a lowercase v.  The generated classes contain an uppercase V and the directory structure created contains uppercase V also.
> package com.perfretail.k2V1.report.schemas;

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


[jira] Commented: (XMLBEANS-143) package name of generated code doesn't match targetNamespace

Posted by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org>.
    [ http://issues.apache.org/jira/browse/XMLBEANS-143?page=comments#action_12443648 ] 
            
Radu Preotiuc-Pietro commented on XMLBEANS-143:
-----------------------------------------------

How did they "fail"? As far as I know, the package name is still valid Java so it should not fail.
Changing the generated package names is covered in the XMLBeans FAQ under "General Questions -> Can I change the default package names for the java classes generated from my schema?"

Where would you rather see it documented?


> package name of generated code doesn't match targetNamespace
> ------------------------------------------------------------
>
>                 Key: XMLBEANS-143
>                 URL: http://issues.apache.org/jira/browse/XMLBEANS-143
>             Project: XMLBeans
>          Issue Type: Bug
>          Components: Compiler
>    Affects Versions: Version 2 Beta 1
>         Environment: Win XP, jdk1.4_2_03
>            Reporter: Randy Thornton
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:rs="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> </xs:schema>
> Note the package name contails k2v1 with a lowercase v.  The generated classes contain an uppercase V and the directory structure created contains uppercase V also.
> package com.perfretail.k2V1.report.schemas;

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[jira] Commented: (XMLBEANS-143) package name of generated code doesn't match targetNamespace

Posted by "Randy Thornton (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-143?page=comments#action_62313 ]
     
Randy Thornton commented on XMLBEANS-143:
-----------------------------------------

This, this issue can be closed.  I will use the .xsdconfig file.  Thanks.

> package name of generated code doesn't match targetNamespace
> ------------------------------------------------------------
>
>          Key: XMLBEANS-143
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-143
>      Project: XMLBeans
>         Type: Bug
>   Components: Compiler
>     Versions: Version 2 Beta 1
>  Environment: Win XP, jdk1.4_2_03
>     Reporter: Randy Thornton

>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema targetNamespace="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:rs="http://www.perfretail.com/k2v1/report/schemas" 
> 	xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
> </xs:schema>
> Note the package name contails k2v1 with a lowercase v.  The generated classes contain an uppercase V and the directory structure created contains uppercase V also.
> package com.perfretail.k2V1.report.schemas;

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