L.S.,

I don't see anything wrong with this XSL. Can you try to set the log level to DEBUG and retry this to see if that gives us any useful information?

Regards,

Gert

Bummer wrote:
Following is my router.xsl which was deployed inside xslt SU file.
=================

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                
xmlns:jbi="xalan://org.apache.servicemix.components.xslt.XalanExtension"
                extension-element-prefixes="jbi"
                
xmlns:xpathrouting="http://servicemix.apache.org/samples/xpathrouting";
                version="1.0">
<xsl:template match="/*">
      <xsl:choose>
         <xsl:when test="@id = '4'">
            <!-- lets forward the inbound message to a service        -->
            <!-- forward doesn't seem to work !! use invoke instead   -->
            <!-- <jbi:forward service="xpathrouting:trace"/>          -->
            <jbi:invoke service="xpathrouting:trace">
               <jbi:copyProperties/>
               <xsl:copy-of select="/" />
            </jbi:invoke>
         </xsl:when>

<!-- lets generate the output XML to use as input, copy the input properties and define some new propertes -->
         <xsl:when test="@id = '12'">
            <jbi:invoke service="xpathrouting:trace">
               <jbi:copyProperties/>
               <jbi:setOutProperty name="foo" select="@sent"/>
               <cheese code="[EMAIL PROTECTED]">
                  <description>This is some content generated from the routing
XSL</description>
               </cheese>
            </jbi:invoke>
         </xsl:when>
<xsl:when test="@id != '2'">
            <jbi:forward service="xpathrouting:trace"/>
         </xsl:when>
<xsl:otherwise>
            <jbi:forward service="xpathrouting:trace"/>
         </xsl:otherwise>
      </xsl:choose>
   </xsl:template>
</xsl:stylesheet>

Reply via email to