Actions
Bug #2898
closedThe second argument of saxon:serialize must either be a string literal, or an xsl:output element
Start date:
2016-08-23
Due date:
% Done:
100%
Estimated time:
Legacy ID:
Applies to branch:
9.7, trunk
Fix Committed on Branch:
9.7, trunk
Fixed in Maintenance Release:
Platforms:
Description
Reported on saxon-help mailing list by Andrew Welch
This xslt:
<xsl:stylesheet version="2.0"
xmlns:saxon="http://saxon.sf.net/"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output name="aaa"/>
<xsl:variable name="chunk">
<chunk/>
</xsl:variable>
<xsl:template match="/">
<xsl:value-of select="saxon:serialize($chunk, 'aaa')"/>
</xsl:template>
</xsl:stylesheet>
fails in 9.7.0.7 with:
"The second argument of saxon:serialize must either be a string literal, or an xsl:output element"
but succeeds in 9.6.0.9
Equally a second arg of '' fails in 9.7.0.7, fine in previous versions.
Please register to edit this issue
Actions