DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=35658>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=35658 Summary: Provide better syntax for converting XML entities Product: Velocity Version: 1.4 Platform: Other OS/Version: All Status: NEW Severity: enhancement Priority: P2 Component: Source AssignedTo: [email protected] ReportedBy: [EMAIL PROTECTED] I'm using velocity to persist my applications data in XML format. The problem is with converting special XML characters to entities. I have read the developers guide here http://jakarta.apache.org/velocity/developer-guide.html#Velocity%20and%20XML I'm wondering if the developers would consider some addition to the velocity syntax to help with this instead. I can't help think that generation of XML must be a common requirement for velocity users and a shortcut syntax would help keep templates looking neater. How about the likes of the following to display a field with automatic conversion of XML characters to entities. <p>The clients name is $&clientName</p> So the client name John O'Connor becomes <p>The clients name is John O'Connor</p> There are alternatives, such as having a specific file type. e.g. .xvm as opposed to .vm A secondary advantage to this is that syntax highlighters could be devised to recognise and highlight both the XML and the template code. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
