You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Jacopo Cappellato <ti...@sastau.it> on 2006/11/24 17:50:56 UTC
What is the best way to escape characters for xsl-fo code generated
by form widgets?
Hi all,
I'd like to escape the special characters (not allowed in xsl-fo
template) from the data formatted by the form widget (see
org.ofbiz.widget.fo.FoFormRenderer.makeBlockString(...)).
Since I'm a lazy person and I don't want to reinvent the wheel, my
question is: what is the best way to escape these characters? Is there a
method that I can use for this?
Thanks,
Jacopo
Re: What is the best way to escape characters for xsl-fo code generated
by form widgets?
Posted by Jacopo Cappellato <ti...@sastau.it>.
Si,
that's exactly what I was looking for.
Thanks,
Jacopo
Si Chen wrote:
> I just saw UtilFormatOut.encodeXmlValue(String inString):
>
> Encodes an XML string replacing the characters '<', '>', '"',
> ''', '&'
>
> Maybe it'll do it?
>
> Sounds like a good idea!
>
>
> On Nov 24, 2006, at 8:50 AM, Jacopo Cappellato wrote:
>
>> Hi all,
>>
>> I'd like to escape the special characters (not allowed in xsl-fo
>> template) from the data formatted by the form widget (see
>> org.ofbiz.widget.fo.FoFormRenderer.makeBlockString(...)).
>> Since I'm a lazy person and I don't want to reinvent the wheel, my
>> question is: what is the best way to escape these characters? Is there
>> a method that I can use for this?
>>
>> Thanks,
>>
>> Jacopo
>
> Best Regards,
>
> Si
> sichen@opensourcestrategies.com
>
>
>
>
Re: What is the best way to escape characters for xsl-fo code generated by form widgets?
Posted by Si Chen <si...@opensourcestrategies.com>.
I just saw UtilFormatOut.encodeXmlValue(String inString):
Encodes an XML string replacing the characters '<', '>',
'"', ''', '&'
Maybe it'll do it?
Sounds like a good idea!
On Nov 24, 2006, at 8:50 AM, Jacopo Cappellato wrote:
> Hi all,
>
> I'd like to escape the special characters (not allowed in xsl-fo
> template) from the data formatted by the form widget (see
> org.ofbiz.widget.fo.FoFormRenderer.makeBlockString(...)).
> Since I'm a lazy person and I don't want to reinvent the wheel, my
> question is: what is the best way to escape these characters? Is
> there a method that I can use for this?
>
> Thanks,
>
> Jacopo
Best Regards,
Si
sichen@opensourcestrategies.com