You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Radu Preotiuc-Pietro (JIRA)" <xm...@xml.apache.org> on 2005/04/07 00:11:16 UTC
[jira] Commented: (XMLBEANS-143) package name of generated code doesn't match targetNamespace
[ 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