Hi Andrew,

Thanks for your reply (and the others).
Your comments helped me a lot. Not only I used
"<xsl:output" to specify the encoding but also used
the following line of code to specify the transformer
object encoding too:

transformer.setOutputProperty(OutputKeys.ENCODING,
"ISO-8859-1");

It didn't work fine without the above line.

Anyways, thank you very much for your great support
:-) Keep up the good job!

Best Regards,
Armond

--- Andrew Welch <[EMAIL PROTECTED]> wrote:
> > <xsl:text
>
disable-output-escaping="yes"><![CDATA["&#2022;"]]></xsl:text>
> 
> This is bad practice, and should be avoided.
> 
> The character &_#2022; (underscore for some mailers)
> is the same
> character regardless of whether it is the actual
> character or the
> character reference.  
> 
> Why do you need the string '&_#2022;' in your
> output?  An xml parser
> will report the same character regardless.  Using
> d-o-e breaks the model
> and isn't even supported by Xalan.
> 
> However, one technique to achieve this sort of
> output is to use an
> encoding that doesn't support the character, thereby
> forcing the
> serialiser to output a reference instead.
> 
> Try using <xsl:output encoding="ISO-8859-1"/> 
> 
> cheers
> andrew


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

Reply via email to