Project

Profile

Help

Bug #2364

closed

Cannot transform an XSLT stylesheet when the xsl:output contains unknown attributes

Added by Radu Pisoi over 9 years ago. Updated almost 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
JAXP Java API
Sprint/Milestone:
Start date:
2015-04-28
Due date:
% Done:

100%

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

Description

I get the next exception when I'm running an XSLT transformation using a JAXP transformer:

java.lang.IllegalArgumentException: Unknown serialization property {http://www.w3.org/XML/1998/namespace}space
	at net.sf.saxon.s9api.Serializer.getProperty(Serializer.java:735)
	at net.sf.saxon.jaxp.TransformerImpl.transform(TransformerImpl.java:138)
	at ro.sync.exml.editor.xmleditor.TransformationAssistant.applyTransformation(TransformationAssistant.java:2368)
	at ro.sync.exml.editor.xmleditor.TransformationAssistant.applyTransformationOrFop(TransformationAssistant.java:1589)
	at ro.sync.exml.editor.xmleditor.TransformationAssistant$4.appRun(TransformationAssistant.java:1175)
	at ro.sync.ui.application.ApplicationThread.run(ApplicationThread.java:135)

Stylesheet:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
    exclude-result-prefixes="xs"
    version="2.0">
    
    <xsl:output xml:space="preserve"></xsl:output>
    
    <xsl:template match="node() | @*">
        <xsl:copy>
            <xsl:apply-templates select="node() | @*"/>
        </xsl:copy>
    </xsl:template>        
</xsl:stylesheet>

Please register to edit this issue

Also available in: Atom PDF