Hello there! I have a scenario where my unit cases are working, but
when running inside jboss they fail. JBoss is running using the Xalan
2.7.0 and the included Xerces on its lib dir. When I run my test case
it does not use the endorsed dir of jboss and so, it works. But...
when I run it using these versions, the XSLT does not work. I'm
appending the xsl file, the original xml, the expected output and the
resulting output with those versions. Is there anything that I should
do?

The xsl file:

<xsl:stylesheet version="1.0"
        xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
        xmlns:wsh="http://www.acme.com.br/WSH/schemas";>

        <xsl:template match="//payload">
                <payload>
   //new payload goes here
                </payload>
        </xsl:template>

        <xsl:template match="*">
                <xsl:copy>
                        <xsl:apply-templates select="@*" />
                        <xsl:apply-templates select="node()" />
                </xsl:copy>
        </xsl:template>

</xsl:stylesheet>

The input file:

<wsh:message xmlns:wsh="http://www.acme.com.br/WSH/schemas";>
        <header>
                <id>358898</id>
                <rule></rule>
                <code>10</code>
                <from>queue:RouterQueue</from>
        </header>
        <payload>
                //old payload
        </payload>
</wsh:message>


When I run the unit test (without the endorsed dirs), it replaces the
old payload to the new one. But, when I run using the endorsed dir, it
simply copy the original payload, not replacing anything.

Any hints?

Best regards

Reply via email to