[xslt] libxslt-0.8 drops text() nodes in identity transform



This script:

<xsl:stylesheet version="1.0"
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform";>
 
<xsl:template match="*|@*|text()">
  <xsl:copy>
    <xsl:apply-templates select="*|@*|text()"/>
  </xsl:copy>
</xsl:template>
 
</xsl:stylesheet>

applied to this input:

<some>text</some>

produces:

<some/>

It should produce

<some>text</some>

 Steve




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