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 Floerke <fl...@doctronic.de> on 2002/12/10 16:41:29 UTC

XML-Entities in (Xalan-C 1.4)

Dear all,

   I played around with Xalan-C 1.4 and found one difference to 1.3. 
Entites in generated URLs were not decoded in the output.

Example:
<?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="/">
   <a href="&amp;test">test</a>
</xsl:template>

</xsl:stylesheet>

Xalan-C 1.3 says:
<a href="&test">test</a>

Xalan-C 1.4:
<a href="&amp;test">test</a>

Normally I would say 1.4 is doing wrong, but I am not sure... Any other 
opinions?

HolgeR

-- 

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


Re: XML-Entities in (Xalan-C 1.4)

Posted by David N Bertoni/Cambridge/IBM <da...@us.ibm.com>.



Hi HolgeR,

The new behavior is correct.  Xalan 1.3 was in error:

   http://www.w3.org/TR/REC-html40/appendix/notes.html#h-B.2.2

Dave



                                                                                                                                        
                      Holger Floerke                                                                                                    
                      <floerke@doctron         To:      xalan-dev@xml.apache.org                                                        
                      ic.de>                   cc:      (bcc: David N Bertoni/Cambridge/IBM)                                            
                                               Subject: XML-Entities in <a href="..."> (Xalan-C 1.4)                                    
                      12/10/2002 07:41                                                                                                  
                      AM                                                                                                                
                      Please respond                                                                                                    
                      to xalan-dev                                                                                                      
                                                                                                                                        



Dear all,

   I played around with Xalan-C 1.4 and found one difference to 1.3.
Entites in generated URLs were not decoded in the output.

Example:
<?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="/">
   <a href="&amp;test">test</a>
</xsl:template>

</xsl:stylesheet>

Xalan-C 1.3 says:
<a href="&test">test</a>

Xalan-C 1.4:
<a href="&amp;test">test</a>

Normally I would say 1.4 is doing wrong, but I am not sure... Any other
opinions?

HolgeR

--

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