[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: using xsl:message with UTF-8 characters

Subject: Re: using xsl:message with UTF-8 characters
From: "Manfred Staudinger" <manfred.staudinger@xxxxxxxxx>
Date: Sun, 22 Apr 2007 23:17:04 +0200
Re:  using xsl:message with UTF-8 characters
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@xxxxxxxxxxxx> 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@xxxxxxxxxxxx> 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

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.