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

translate one char to 2 or more chars

Subject: translate one char to 2 or more chars
From: Frederic Schwebel <schwebel@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 29 Feb 2000 17:47:09 +0100 (MET)
xsl translate
Hi,

In French Math ASCII Braille, { should be translated with 2 chars : &#165;
and ?
so I defined the entity
<!ENTITY accog "&#165;?">

and put later in my stylesheet
  <xsl:value-of select="translate(.,'{','&accog;')" />
but both saxon and xt consider give me only the first char (#165;) for the
translated "{". (and if I put a char after { this char is translated into
? ).

I tried also to define
  <!ENTITY accog "&#xA53F;">
but then saxon tells me "Output char not available in this encoding
(decimal 42303)" (iso-8859-1) and xt gives me mist.

Do I have to use the powerful but heavy "replace-string" template or is
there a way to achieve what I want with xsl:translate ?

Thanks a lot in advance.
Frederic SCHWEBEL



 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.