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

Re: characters with accents

Subject: Re: characters with accents
From: "Steve Muench" <smuench@xxxxxxxxxxxxx>
Date: Tue, 1 Feb 2000 07:58:53 -0800
oracle accents
Using Oracle's XSLT Engine with your example I 
get a three-byte output file with the expected
result. Might give it a spin to see if it
works for you on your larger example.

http://technet.oracle.com/tech/xml/parser_java2/

It's part of our XML Parser for Java V2 kit.

"oraxsl" is the command-line version, or

$ java oracle.xml.parser.v2.oraxsl foo.xml foo.xsl foo.out

_________________________________________________________
Steve Muench, Consulting Product Manager & XML Evangelist
Business Components for Java Development Team
http://technet.oracle.com/tech/java
http://technet.oracle.com/tech/xml
----- Original Message ----- 
From: "Frederic Schwebel" <schwebel@xxxxxxxxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxx>
Sent: Tuesday, February 01, 2000 7:32 AM
Subject: 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
| 


 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.