Hi Nick,
The use of entities is allowed by the XSLT recommendation and expected by
many browers:
http://www.w3.org/TR/xslt#section-HTML-Output-Method
"The html output method may output a character using a character entity
reference, if one is defined for it in the version of HTML that the output
method is using."
Many XSLT processors do this, not just Xalan-C, so I'm not sure why you
think they should NOT be escaped. There's no way to change this behavior
at this time, unless you want to modify the source code. If you really
need this, you can create a Bugzilla report and request an enhancement.
Dave
|---------+--------------------------->
| | Nick Bastin |
| | <[EMAIL PROTECTED]|
| | om> |
| | |
| | 03/07/2004 11:18|
| | AM |
| | Please respond |
| | to xalan-c-users|
|---------+--------------------------->
>-------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
| To: [email protected]
|
| cc: (bcc: David N Bertoni/Cambridge/IBM)
|
| Subject: Avoiding the escaping UTF-8 unicode text
|
>-------------------------------------------------------------------------------------------------------------------------------------------------|
Xalan is output-escaping UTF-8 text that should most definitely NOT be
escaped in HTML output. It's escaping all of the character 'bytes' as
if they were characters themselves. Is there something that has to be
specifically set in the stylesheet to avoid this? It seems to me that
it should know that the characters are more than 1 byte wide, and
should leave them alone when outputting them. (Note: it works fine
when we transform XML->XML, but XML->HTML results in the escaping - is
there any way to avoid this?)
--
Nick