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

characters with accents

Subject: characters with accents
From: Frederic Schwebel <schwebel@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 1 Feb 2000 16:32:24 +0100 (MET)
characters with accents
Hi,

I want to change all numbers (0 to 9) in MathML expressions into
characters with accents, because they are the right characters for the
braille displays and braille embossers.
I need both html and text outputs for this, and thanks to David Carlisle
and Phil Lanch, it works in html with this :
----------------

<?xml version='1.0' encoding="ISO-8859-1" ?>
<!DOCTYPE xsl:stylesheet [
  <!ENTITY bra1  "&#226;">
  <!ENTITY bra2  "&#234;">
  <!ENTITY bra3  "&#238;">
]>
<xsl:stylesheet version="1.0"
xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
<xsl:output method="html"/>

... a few lines after ....

<xsl:template match="mn">
	<xsl:value-of select="translate(.,'123','&bra1;&bra2;&bra3;')" />
</xsl:template>

---------------

But for the text output (when i change the xsl:output-method)
it gives me crazy characters (actually 2 characters for one numbrer), no
matter if I look at the output with Windows Notepad, Ms-Dos Edit or a Unix
viewer...

I tried both with xt and saxon (DOS versions), both with UTF-8 and ISO
encoding, I always have the same result. I tried different ASCII codes and
I saw that any number after 127 gives me two "crazy" characters as a
translation. But the charset of my DOS box is bigger than 127, I know,
because I can get accents when I type the character on the keyboard.

I hope you understand what I mean. I don't know if it's really a XSL
problem but any help is really welcomed, I'm stuck...

Thanks !
Frederic


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.