Fuse 6.1 XLST output removes namespace

Solution Verified - Updated -

Issue

In Fuse 7.1, using the following transform file would copy the input to the output.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
            <xsl:template match="ActivityMessage">
                        <xsl:copy-of select="." ></xsl:copy>
            </xsl:template>
</xsl:stylesheet>

When using this same transform under JBoss Fuse 6.1, the output removes the namespace of the xml file.

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  

We did a bit of research on the internet and found that changing the transform to

Changing the transform to the following results in the copy working properly:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
       <xsl:template match="@* | node()">
    <xsl:copy>
      <xsl:apply-templates select="@* | node()"></xsl:apply>
    </xsl:copy>
  </xsl:template>
</xsl:stylesheet>

Environment

Red Hat JBoss Fuse 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content