Re: [xslt] Use character entities to represent non-ASCII characters
- From: Nick Wellnhofer <wellnhofer aevum de>
- To: Paul Kinnucan <paulk mathworks com>, The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Use character entities to represent non-ASCII characters
- Date: Mon, 22 Aug 2022 17:32:21 +0200
On 22/08/2022 16:46, Paul Kinnucan wrote:
Specifying HTML as the output type does not cause libxslt to generate ASCII with character entities for
non-ASCII characters.
It works for me:
$ cat t.xsl
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" encoding="HTML"/>
<xsl:template match="/">
<p>£</p>
</xsl:template>
</xsl:stylesheet>
$ xsltproc t.xsl t.xsl
<p>£</p>
Note that the output *encoding* must be set to "HTML".
Nick
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]