This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
translate one char to 2 or more chars
- To: xsl-list at mulberrytech dot com
- Subject: translate one char to 2 or more chars
- From: Frederic Schwebel <schwebel at handy dot univ-lyon1 dot fr>
- Date: Tue, 29 Feb 2000 17:47:09 +0100 (MET)
- Reply-To: xsl-list at mulberrytech dot com
Hi,
In French Math ASCII Braille, { should be translated with 2 chars : ¥
and ?
so I defined the entity
<!ENTITY accog "¥?">
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 "ꔿ">
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