RE: [xsl] problems around →

Subject: RE: [xsl] problems around →
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 6 Oct 2006 08:37:40 +0100
Were the characters defined in that order? The spec says that if there's more
than one mapping, the last one should be used, so I would have expected
"&amp;rightarrow;".

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: Frank Marent [mailto:frank.marent@xxxxxxxxxxx]
> Sent: 06 October 2006 08:09
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re: [xsl] problems around &rarr;
>
> we found the reason for that behaviour. a character map is
> included in the xslt. we had (among 2100 others) five
> occurences for the character &#x02192; in there:
>
>    ..
>    <xsl:output-character string="&amp;ShortRightArrow;"
> character="&#x02192;"/>
>    ..
>    <xsl:output-character string="&amp;srarr;" character="&#x02192;"/>
>    ..
>    <xsl:output-character string="&amp;rarr;" character="&#x02192;"/>
>    ..
>    <xsl:output-character string="&amp;RightArrow;"
> character="&#x02192;"/>
>    ..
>    <xsl:output-character string="&amp;rightarrow;"
> character="&#x02192;"/>
>    ..
>
> the correct mapping to &rarr; was ignored, &ShortRightArrow;
> was added instead and the result bo8o8o8 was caused by that (we
> need the transformation to entity references since our
> mathml2eps converting tool needs entity references).
>
> no dtd error. no saxon error. frank error.
> thanks michael, david and andrew for your kind help.
>
> frank

Current Thread