This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Converting number to ASCII-character
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Converting number to ASCII-character
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Mon, 24 Sep 2001 12:53:36 +0100
- Reply-To: xsl-list at lists dot mulberrytech dot com
> > The closest equivalent is:
> > <xsl:value-of select="concat('&', $number, ';')"
> > disable-output-escaping="yes"/>
> > which works because Unicode character values are a superset
> of ASCII.
> >
>
> this seemed to be the best solution for me. But the xsl:value element
> outputs the following:
>
> &65;
>
Then you are using a processor (or serializer) that doesn't support
disable-output-escaping. Not all do, it's an optional feature, and a
somewhat deprecated one. Switch processor, or use one of the other
solutions.
(Incidentally, of course, I left out the "#" that's required in the output,
you want "A".
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list