xsl-list
[Top] [All Lists]

Re: [xsl] using xsl:message with UTF-8 characters

2007-04-22 14:17:23
Hi,
Tanks for your responses so far! All of you agree (as I do), that the standard
Windows shell is unable to display UTF-8 correctly.

In my first message I didn't make it clear, that in fact I used the command
prompt in SciTE for my test (I've forgotten about the Windows cmd.exe
long ago). As the test from Michael Kay shows also
On 21/04/07, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
Take this stylesheet:

<xsl:template name="main">
  <xsl:value-of select="'V: &#xaa;&#xba;&#x20ac;'"/>
  <xsl:message>M: &#xaa;&#xba;&#x20ac;</xsl:message>
</xsl:template>

If I run it from the command prompt in UltraEdit under WinXP, the message
(M:) displays correctly and the principal output (V:) does not.

This is clearly the interesting part of my inquiry: there are some shells
available under Windows, which are able to display (some) UTF-8 correctly.
What I'm thinking is not so much how Saxon may be changed, but instead
to look for a solution in my environment to get the output from xsl:message
on board. It's really a pain to think that under Windows xsl:message is more
or less useless for non-Latin alphabets.

On 20/04/07, Michael Kay <mike(_at_)saxonica(_dot_)com> wrote:
By default the output from xsl:message in Saxon goes to System.err
...
It's easy enough to tell Saxon to send the message somewhere else where it
won't be mangled, but the question is, where do you actually want it?
To begin with, am I correct to assume it would be necessary (if not sufficient)
to change this default and the way to do it is to specify the "-m classname"
parameter on the command line?

How would I do that? Can you give me an example?

Regards, Manfred

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--