Subject: Re: characters with accents From: "Steve Muench" <smuench@xxxxxxxxxxxxx> Date: Tue, 1 Feb 2000 07:58:53 -0800 |
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 "â"> | <!ENTITY bra2 "ê"> | <!ENTITY bra3 "î"> | ]> | <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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
characters with accents, Frederic Schwebel | Thread | Re: characters with accents, David Carlisle |
XSLT conformance of MSXML2, Kay Michael | Date | Re: characters with accents, David Carlisle |
Month |