You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by su...@apache.org on 2011/01/21 05:47:18 UTC
svn commit: r1061631 - in
/synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform:
dynamic_key_1.xslt dynamic_key_2.xslt static_key.xslt
Author: supun
Date: Fri Jan 21 04:47:17 2011
New Revision: 1061631
URL: http://svn.apache.org/viewvc?rev=1061631&view=rev
Log:
adding the xslt files, thanks Ranga for the contribution
Added:
synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_1.xslt
synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_2.xslt
synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/static_key.xslt
Added: synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_1.xslt
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_1.xslt?rev=1061631&view=auto
==============================================================================
--- synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_1.xslt (added)
+++ synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_1.xslt Fri Jan 21 04:47:17 2011
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
+ xmlns:m0="http://services.samples/xsd"
+ exclude-result-prefixes="m0 fn">
+ <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates select="//m0:CheckPriceRequest"/>
+ </xsl:template>
+
+ <xsl:template match="m0:CheckPriceRequest">
+
+ <m:GetQuote xmlns:m="http://www.webserviceX.NET/">
+ <m:symbol>
+ <xsl:value-of select="m0:DynamicXsltKey1"/>
+ </m:symbol>
+ </m:GetQuote>
+
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Added: synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_2.xslt
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_2.xslt?rev=1061631&view=auto
==============================================================================
--- synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_2.xslt (added)
+++ synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/dynamic_key_2.xslt Fri Jan 21 04:47:17 2011
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
+ xmlns:m0="http://services.samples/xsd"
+ exclude-result-prefixes="m0 fn">
+ <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates select="//m0:CheckPriceRequest"/>
+ </xsl:template>
+
+ <xsl:template match="m0:CheckPriceRequest">
+
+ <m:GetQuote xmlns:m="http://www.webserviceX.NET/">
+ <m:symbol>
+ <xsl:value-of select="m0:DynamicXsltKey2"/>
+ </m:symbol>
+ </m:GetQuote>
+
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file
Added: synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/static_key.xslt
URL: http://svn.apache.org/viewvc/synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/static_key.xslt?rev=1061631&view=auto
==============================================================================
--- synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/static_key.xslt (added)
+++ synapse/trunk/java/modules/core/src/test/resources/org/apache/synapse/mediators/transform/static_key.xslt Fri Jan 21 04:47:17 2011
@@ -0,0 +1,40 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ ~ Licensed to the Apache Software Foundation (ASF) under one
+ ~ or more contributor license agreements. See the NOTICE file
+ ~ distributed with this work for additional information
+ ~ regarding copyright ownership. The ASF licenses this file
+ ~ to you under the Apache License, Version 2.0 (the
+ ~ "License"); you may not use this file except in compliance
+ ~ with the License. You may obtain a copy of the License at
+ ~
+ ~ http://www.apache.org/licenses/LICENSE-2.0
+ ~
+ ~ Unless required by applicable law or agreed to in writing,
+ ~ software distributed under the License is distributed on an
+ ~ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ ~ KIND, either express or implied. See the License for the
+ ~ specific language governing permissions and limitations
+ ~ under the License.
+ -->
+<xsl:stylesheet version="2.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
+ xmlns:m0="http://services.samples/xsd"
+ exclude-result-prefixes="m0 fn">
+ <xsl:output method="xml" omit-xml-declaration="yes" indent="yes"/>
+
+ <xsl:template match="/">
+ <xsl:apply-templates select="//m0:CheckPriceRequest"/>
+ </xsl:template>
+
+ <xsl:template match="m0:CheckPriceRequest">
+
+ <m:GetQuote xmlns:m="http://www.webserviceX.NET/">
+ <m:symbol>
+ <xsl:value-of select="m0:StaticXsltKey"/>
+ </m:symbol>
+ </m:GetQuote>
+
+ </xsl:template>
+</xsl:stylesheet>
\ No newline at end of file