Well, the file in question is being transformed into an html file, but I'm using xalan's redirect extention to output some extra information for a php script to use afterwards, to keep statistics and compress it. The script can only understand ASCII; at least, I don't know how to make it multi-byte safe.

Thanks for the suggestion, ISO-8859-1 works fine.



From: "Voytenko, Dimitry" <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
Subject: RE: value-of with disable-output-escaping="yes"
Date: Sat, 30 Nov 2002 20:39:46 -0800

Do you mean this application doesn't understand HTML escapes? What about
HTML/SGML tags?
May be you should use in this case:
<xsl:output method="text" encoding="ASCII"/>

This will make sure none of your symbols are escaped and they all will be
strictly 7-bit ASCII. Or you can ISO-8859-1 encoding for 8-bit encoding, as
ASCII is subset of it. Method "text" will also ensure that none of tags you
might try to output will go in the result.

Dmitry

-----Original Message-----
From: Foxy Shadis [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 30, 2002 20:32
To: [EMAIL PROTECTED]
Subject: RE: value-of with disable-output-escaping="yes"


Hrm, yes, I forgot that UTF-8 was multibyte. Thanks. I need it because this
little part is being redirected into a plain ASCII-8 text file for use by
another application. Can you suggest an encoding that would do this?

Foxy


>From: "Voytenko, Dimitry" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: value-of with disable-output-escaping="yes"
>Date: Sat, 30 Nov 2002 20:11:39 -0800
>
>Oh, I see, you use disable-output-escaping="yes". That's why Xalan doesn't
>escape 237 into &iacute; when outputting.
>Why do you need it anyway?
>In any case, output is right though.
>
>thanks
>
>-----Original Message-----
>From: Voytenko, Dimitry [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 30, 2002 20:08
>To: '[EMAIL PROTECTED]'
>Subject: RE: value-of with disable-output-escaping="yes"
>
>
>Hi,
>
>With these settings you should have gotten two bytes as a result of the
>output of &iacute; in the UTF-8 encoding. This escape has unicode code
>00ED,
>which is translated into bytes C3 and AD in the UTF-8. So this is normal
>and
>correct byte sequence for the symbol you want to output. I believe that all
>clients should be able to read it correctly.
>But I can't say why Xalan doesn't output escape &iacute; for the HTML
>output
>method in this case. I can see it defined in the HTMLEntities.res file.
>
>Thanks,
>Dmitry
>
>-----Original Message-----
>From: Foxy Shadis [mailto:[EMAIL PROTECTED]]
>Sent: Saturday, November 30, 2002 19:45
>To: [EMAIL PROTECTED]
>Subject: RE: value-of with disable-output-escaping="yes"
>
>
>Right.
>
><xsl:output method="html" indent="no" doctype-public="-//W3C//DTD HTML 4.01
>Strict//EN" encoding="UTF-8"/>
>
>and the stylesheet includes:
>
><!DOCTYPE xsl:stylesheet SYSTEM "html.ent">
>
>which is a big list that defines every html entity plus a few, and which
>normally works fine.
>
>
>Reply-To: [EMAIL PROTECTED]
> >
> >Hi Foxy,
> >
> >Could you supply xsl:output information as it looks for you stylesheet?
> >It'd
> >be hard to say anything w/o seeing it.
> >
> >Thanks,
> >Dmitry
> >
> >-----Original Message-----
> >From: Foxy Shadis [mailto:[EMAIL PROTECTED]]
> >Sent: Saturday, November 30, 2002 18:55
> >To: [EMAIL PROTECTED]
> >Subject: xsl:value-of with disable-output-escaping="yes"
> >
> >
> >
> ><xsl:value-of disable-output-escaping="yes" select="'Kiernan,
> >Caitl&iacute;n
> >
> >R.'"/>
> >
> >results in
> >
> >Kiernan, CaitlAn R. (including a strange unicode problem)
> >rather than
> >Kiernan, Caitli-n R.
> >
> >with fairly recent CVS. If it takes more than this to duplicate, I'll
> >supply
> >
> >all.
> >
> >Foxy
> >
> >Swiftpaw Foxyshadis, wildlife artist
> >[EMAIL PROTECTED] | http://foxyshadis.slightlydark.com/
>
>

_________________________________________________________________
The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail

Reply via email to