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

using xsl:message with UTF-8 characters

Subject: using xsl:message with UTF-8 characters
From: "Manfred Staudinger" <manfred.staudinger@xxxxxxxxx>
Date: Fri, 20 Apr 2007 22:12:12 +0200
 using xsl:message with UTF-8 characters
Using XSLT 2.0 with Saxon 8.9.0.3J I would like to use
xsl:message much more, but I don't know how to get
UTF-8 chars displayed correctly. Here is what I get when
I invoke test.xsl with saxon from the command line:

java net.sf.saxon.Transform dummy.xml test.xsl
a or ?that's the question  <---- I replaced a square by a true ?
<doc>a or d, that's the question</doc>>Exit code: 0

The square stands for x'E4 AC A0' (which would triggers base64
encoding in gmail by the way) and the text has not only lost the "d"
(x'C3 A4') but also the next 2 bytes ", " (x'C2 20').

Any idea how to get xsl:message working ?

Manfred

test.xsl
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet version="2.0"
 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output omit-xml-declaration="yes"/>
<xsl:template match="/">
<doc>
 <xsl:message select="'a or d, that''s the question'"/>
 <xsl:value-of select="'a or d, that''s the question'"/>
</doc>
</xsl:template>
</xsl:stylesheet>

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.