You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <ji...@apache.org> on 2005/09/18 23:29:54 UTC

[jira] Resolved: (VELOCITY-104) hyphens in xsd element names produce uncompilable code

     [ http://issues.apache.org/jira/browse/VELOCITY-104?page=all ]
     
Will Glass-Husain resolved VELOCITY-104:
----------------------------------------

    Resolution: Invalid
     Assign To:     (was: Velocity-Dev List)

Hi,

Reviewing this old bug.  Sorry no one responded when it was posted.  If Velocity is applied before the XSD the Java method names and XSD method names should be independent.

I'm going to close this issue.  If by some chance this is still relevant, please feel free to write to the velocity-user list.

Thanks, WILL

> hyphens in xsd element names produce uncompilable code
> ------------------------------------------------------
>
>          Key: VELOCITY-104
>          URL: http://issues.apache.org/jira/browse/VELOCITY-104
>      Project: Velocity
>         Type: Bug
>   Components: Source
>     Versions: 1.3-rc1
>  Environment: Operating System: Linux
> Platform: All
>     Reporter: Robert Rose

>
> I'm not all that familiar (yet) with Velocity, so I apologize if this is not 
> the right forum to post this problem.  This may be a bug in Velocity or simple 
> my misunderstanding of how to use Velocity.
> I have been using Velocity successfully for some time now to produce parsers 
> for XSD's of my own, but now I have been handed an XSD that contains hyphens in 
> the element names and the code that is produced will not compile in Java 
> because hyphens are illegal in class names and function names.
> Is this a bug in Velocity?  Should it automatically replace '-' with '_' when 
> parsing elements and translating them when used in Velocity templates?  Can an 
> option be added to Velocity that would allow for this?

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