You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@synapse.apache.org by ve...@apache.org on 2012/09/23 10:02:18 UTC
svn commit: r1388974 -
/synapse/branches/SYNAPSE-905/repository/conf/sample/resources/xquery/xquery_commisson.xq
Author: veithen
Date: Sun Sep 23 08:02:18 2012
New Revision: 1388974
URL: http://svn.apache.org/viewvc?rev=1388974&view=rev
Log:
Fixed sample 391.
Modified:
synapse/branches/SYNAPSE-905/repository/conf/sample/resources/xquery/xquery_commisson.xq
Modified: synapse/branches/SYNAPSE-905/repository/conf/sample/resources/xquery/xquery_commisson.xq
URL: http://svn.apache.org/viewvc/synapse/branches/SYNAPSE-905/repository/conf/sample/resources/xquery/xquery_commisson.xq?rev=1388974&r1=1388973&r2=1388974&view=diff
==============================================================================
--- synapse/branches/SYNAPSE-905/repository/conf/sample/resources/xquery/xquery_commisson.xq (original)
+++ synapse/branches/SYNAPSE-905/repository/conf/sample/resources/xquery/xquery_commisson.xq Sun Sep 23 08:02:18 2012
@@ -1,10 +1,9 @@
<x><![CDATA[
declare namespace ns="http://services.samples";
- declare namespace m1="http://services.samples/xsd";
declare variable $payload as document-node() external;
declare variable $commission as document-node() external;
- <m0:return xmlns:m0="http://services.samples/xsd">
- <m0:symbol>{$payload//ns:return/m1:symbol/child::text()}</m0:symbol>
- <m0:last>{$payload//ns:return/m1:last/child::text()+ $commission//commission/vendor[@symbol=$payload//ns:return/m1:symbol/child::text()]}</m0:last>
+ <m0:return xmlns:m0="http://services.samples">
+ <m0:symbol>{$payload//ns:return/ns:symbol/child::text()}</m0:symbol>
+ <m0:last>{$payload//ns:return/ns:last/child::text()+ $commission//commission/vendor[@symbol=$payload//ns:return/ns:symbol/child::text()]}</m0:last>
</m0:return>
]]></x>
\ No newline at end of file