| Commit in servicemix/base/src/test/resources/org/servicemix/components/xslt on MAIN | |||
| split.xsl | +11 | -9 | 1.1 -> 1.2 |
added snippet macro
servicemix/base/src/test/resources/org/servicemix/components/xslt
diff -u -r1.1 -r1.2 --- split.xsl 31 Aug 2005 10:19:05 -0000 1.1 +++ split.xsl 31 Aug 2005 10:28:07 -0000 1.2 @@ -1,7 +1,9 @@
+<?xml version="1.0"?> +<!-- START SNIPPET: route -->
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
- xmlns:jbi="xalan://org.servicemix.components.xslt.XalanExtension" - extension-element-prefixes="jbi" - xmlns:foo="http://servicemix.org/cheese/" version="1.0">
+ xmlns:jbi="xalan://org.servicemix.components.xslt.XalanExtension" + extension-element-prefixes="jbi" + xmlns:foo="http://servicemix.org/cheese/" version="1.0">
<xsl:template match="/">
@@ -12,23 +14,23 @@
<!-- lets split the message -->
<jbi:invoke service="foo:service2">
- <xsl:copy-of select="/foo/beer" />
+ <xsl:copy-of select="/foo/beer"/>
</jbi:invoke>
<!-- 1-many split -->
<xsl:for-each select="/foo/lineitem">
<jbi:invoke service="foo:service3">
- <xsl:copy-of select="." />
+ <xsl:copy-of select="."/>
</jbi:invoke>
</xsl:for-each>
<!-- pass the entire message to the final endpoint -->
<jbi:invoke service="foo:receiver">
- <jbi:copyProperties /> - <jbi:setOutProperty name="bar" select="/sample/@id" /> - <xsl:copy-of select="/" />
+ <jbi:copyProperties/> + <jbi:setOutProperty name="bar" select="/sample/@id"/> + <xsl:copy-of select="/"/>
</jbi:invoke> </xsl:template>
-
</xsl:stylesheet>
+<!-- END SNIPPET: route -->
