--- [EMAIL PROTECTED] wrote:

> Thanks for your help, everything works great now:) I
> have one more
> question though: how to change special characters to
> safe ones while
> using my custom plugin? I.e., if I have something
> like that:
> 
>      @prefix.description Index must be < 0 
> 
> and using jelly template it transforms to the
> following xml:
> 
>      <description>Index must be < 0</description>
> 
> which produces a nonvalid xml. Is there a way to
> change "<" to
> "&lt;" on the fly? I tried to use jelly's escapeText
> attribute, but
> unsuccessfully. Any hints?
I find 
org.apache.commons.lang.StringEscapeUtils
really usefull in my tempates ( velocity ) 

Just drop it into context, or wrap it by plugin
method.

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
Still using XDoclet 1.x?  XDoclet 2 is released and of production quality.
check it out: http://xdoclet.codehaus.org

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

Reply via email to