Joaquin,
that's right, the handler never gets called for utf8 which is processed
internally. I can't see any workaround except a change to the code (an
easy hack, I think).
Tom
On Thu, 31 May 2001 14:17:01 +0200
"Joaqu�n M� L�pez Mu�oz" <[EMAIL PROTECTED]> wrote:
> Using Sab 0.52, Win32.
> I'd like to produce output in UTF-8 format, but escaping every character
>
> with code n greater than 127 to its equivalent character entity &#n.;
> Had i wanted to do this using another output encoding (US-ASCII, for
> instance), I could do it by stating
>
> <xsl:output encoding="US-ASCII">
>
> and then registering an appropriate encription handler for that
> enconding. I wrote the code for doing just that enad everything works
> fine.
> The problem comes when try to run the encription handler for "UTF-8"
> encoding; in this situation, my enc handler never gets called (I guess
> because
> Sab understands UTF-8 is native and does not require any user supplied
> handler).
>
> Any ideas on how to get the effect I'm after? If I haven't made my point
>
> clear enough, please tell me so and I'll try to elaborate more on the
> problem.
>
> PS: If someone wants the code for the encription handler, I'll be glad
> to
> give it away to the open source world :)
>
> Joaqu�n M� L�pez Mu�oz
> Telef�nica Investigaci�n y Desarrollo
>
>