Project

Profile

Help

Bug #4315

closed

Named output ignored in 9.9 when using result-document with format attribute

Added by Jerry Jackson over 4 years ago. Updated about 4 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Serialization
Sprint/Milestone:
-
Start date:
2019-09-22
Due date:
% Done:

100%

Estimated time:
Legacy ID:
Applies to branch:
9.9, trunk
Fix Committed on Branch:
9.9, trunk
Fixed in Maintenance Release:
Platforms:

Description

When using <xsl:result document> with a format-attribute that refers to an xsl:output attribute, this seems to be ignored in 9.9.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="3.0">
	<xsl:output method="text"/>
	<xsl:output name="xml" method="xml"/>
	<xsl:template name="main">
		<xsl:result-document format="xml">
			<xsl:message>
				<xsl:value-of select="system-property('xsl:product-name')"/>
				<xsl:text> </xsl:text>
				<xsl:value-of select="system-property('xsl:product-version')"/>
			</xsl:message>
			<test/>
		</xsl:result-document>
	</xsl:template>
</xsl:stylesheet>

Produces different outputs for following versions:

C:\saxon>java -jar saxon9he.jar test.xsl -it:main
SAXON HE 9.9.1.1

C:\saxon>java -jar Saxon-HE-9.8.0-1.jar test.xsl -it:main
SAXON HE 9.8.0.1
<?xml version="1.0" encoding="UTF-8"?><test/>

Please register to edit this issue

Also available in: Atom PDF