You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Holger =?iso-8859-1?Q?Fl�rke?= <fl...@doctronic.de> on 2001/04/20 16:32:56 UTC

entities in comments HTML output

Hi there,

I do not know whether Xalan (Xalan-C 1.1) or i.e. XT is right.

Entity-References in comments are not resolved with output method 'html'.

XML-Document
<?xml version="1.0" encoding="iso-8859-1"?>
<root></root>

XSL-Stylesheet
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet version="1.0"
                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

   <xsl:output method="html" encoding="iso-8859-1"/>

   <xsl:template match="/">
     <xsl:comment>me&amp;you</xsl:comment>
   </xsl:template>

</xsl:stylesheet>

Xalan-C 1.1 result (please note the '&amp;')
<!--me&amp;you-->

XT result (please note the '&':
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><!--me&you-->

Who is right?

HolgeR

-- 
holger floerke                      d  o  c  t  r  o  n  i  c
email floerke@doctronic.de          information publishing + retrieval
phone +49 (0) 2222 9292 90          http://www.doctronic.de
fax   +49 (0) 2222 9292 99