[xslt] Problems with xsl:text



Hello,

I try to use the XML::LibXML and XML::LibXSLT perl packages and always get
in trouble with the 'disable-output-escaping' attribute of the 'xsl:text'
element. The stylesheet-file contains the following section:

<xsl:template match="image">
  <a>
    <xsl:attribute name="href">
      <xsl:text disable-output-escaping="yes">
        javascript:zoom('./zoom.html?file=abc.jpg&amp;width=300&amp;400');
      </xsl:text>
    </xsl:attribute>
          :
  </a>
</xsl:template>

Using LibXML and LibXSLT the newly created document still contains the
entity reference '&amp;' instead of the character '&'.
There are no problems when using xalan or saxon on MS Windows. Is there any
possiblity to get the right character when using LibXML and LibXSLT?

Thank you very much!

Gero Meissner

Heinze GmbH
Geschaeftsstelle Ost
Paradiesstraße 206B
12526 Berlin

Tel: +49 (030) 67 97 09 24
Fax: +49 (030) 67 97 09 34
email: gero.meissner@heinze.de





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]