Project

Profile

Help

Bug #2898

closed

The second argument of saxon:serialize must either be a string literal, or an xsl:output element

Added by Michael Kay over 7 years ago. Updated almost 7 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Saxon extensions
Sprint/Milestone:
-
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

Also available in: Atom PDF