[xml/sgml-pkgs] Bug#423937: xsltproc: disable-output-escaping fails to work in stylesheet

Daniel Leidert daniel.leidert at wgdd.de
Wed May 16 10:25:20 UTC 2007


Am Dienstag, den 15.05.2007, 11:32 +1000 schrieb Ben Stewart:

> xsltproc fails to comply with the disable-output-escaping attribute
> as applied to <xsl:attribute> and <xsl:text> tags.
> 
> This is a regression, as earlier versions of xsltproc correctly parsed
> the following:
> 
> ...
>   <xsl:text disable-output-escaping="yes">&eacute;</xsl:text>
> ...
> 
> The current release complains about eacute being an unknown entity, as
> would be expected if disable-output-escaping was not enabled.

It would be a bug to not complain here AFAIK. You can mask it with

<![CDATA[&eacute;]]>

if you want. But if you want it your way ...

> Usage of &amp; in place of the &

... you must do this. And this works for me with the current xsltproc
version in Sid.

> (with disable-output-escaping still
> in place) fails to produce the expected output of &eacute; in the
> target document.

What does it produce in your case? Can you provide test files, that
reproducibly show this issue for you?

> The start of the XSL template showing the defect is as follows:
> 
> <?xml version="1.0" ?>
> <xsl:stylesheet version="1.0"
>     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
> 
>   <xsl:output method="xml" omit-xml-declaration="yes"
>       doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
>       doctype-system="DTD/xhtml1-strict.dtd"/>
> 	  
>      <xsl:template match="/">
>       ...
>      </xsl:template>
> <xsl:stylesheet>

I attached an example XSLT file based on this template. It produces the
result I expect.

Regards, Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: example_5.xsl
Type: application/xml
Size: 690 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/debian-xml-sgml-pkgs/attachments/20070516/4de2aa4e/attachment.xsl 


More information about the debian-xml-sgml-pkgs mailing list