You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by bu...@apache.org on 2012/12/31 12:43:09 UTC

svn commit: r844397 - in /websites/staging/ode/trunk/content: ./ extensions/index.html extensions/xquery-extensions.html

Author: buildbot
Date: Mon Dec 31 11:43:09 2012
New Revision: 844397

Log:
Staging update by buildbot for ode

Modified:
    websites/staging/ode/trunk/content/   (props changed)
    websites/staging/ode/trunk/content/extensions/index.html
    websites/staging/ode/trunk/content/extensions/xquery-extensions.html

Propchange: websites/staging/ode/trunk/content/
------------------------------------------------------------------------------
--- cms:source-revision (original)
+++ cms:source-revision Mon Dec 31 11:43:09 2012
@@ -1 +1 @@
-1427088
+1427089

Modified: websites/staging/ode/trunk/content/extensions/index.html
==============================================================================
--- websites/staging/ode/trunk/content/extensions/index.html (original)
+++ websites/staging/ode/trunk/content/extensions/index.html Mon Dec 31 11:43:09 2012
@@ -90,6 +90,7 @@
 <li><a href="#BPELExtensions-ActivityFailureandRecovery">Activity Failure and Recovery</a></li>
 <li><a href="#BPELExtensions-ExtensionActivities-ExtensibleAssignOperations">Extension Activities &amp; Extensible Assign Operations</a></li>
 <li><a href="#BPELExtensions-XPathExtensions">XPath Extensions</a></li>
+<li><a href="#BPELExtensions-XQueryExtensions">XQuery Extensions</a></li>
 <li><a href="#BPELExtensions-ExternalVariables">External Variables</a></li>
 <li><a href="#BPELExtensions-HeadersHandling">Headers Handling</a></li>
 <li><a href="#BPELExtensions-RESTfulBPEL-PartI">RESTful BPEL, Part I</a></li>
@@ -117,6 +118,10 @@
 <h2 id="xpath-extensions"><a href="xpath-extensions.html">XPath Extensions</a></h2>
 <p>Apache ODE extends the default XPath coverage provided by the WS-BPEL specification mostly by adding support for <a href="http://www.w3.org/TR/xpath20/">XPath 2.0</a> and by offering a few utility extension functions to make some assignments easier.</p>
 <p><a href="xpath-extensions.html">Read more</a></p>
+<p><a name="BPELExtensions-XQueryExtensions"></a></p>
+<h2 id="xpath-extensions_1"><a href="xquery-extensions.html">XPath Extensions</a></h2>
+<p>Apache ODE extends the default XPath coverage provided by the WS-BPEL specification mostly by adding support for <a href="http://www.w3.org/TR/xquery/">XQuery 1.0</a> and by offering a few utility extension functions to make some assignments easier.</p>
+<p><a href="xquery-extensions.html">Read more</a></p>
 <p><a name="BPELExtensions-ExternalVariables"></a></p>
 <h2 id="external-variables"><a href="external-variables.html">External Variables</a></h2>
 <p>External variables are an easy way to share data between the process and external systems, by treating those independent entities as BPEL variables that can be used in expressions and assignments.  External variables may be records stored in the database, REST resources, etc.</p>

Modified: websites/staging/ode/trunk/content/extensions/xquery-extensions.html
==============================================================================
--- websites/staging/ode/trunk/content/extensions/xquery-extensions.html (original)
+++ websites/staging/ode/trunk/content/extensions/xquery-extensions.html Mon Dec 31 11:43:09 2012
@@ -28,7 +28,7 @@
               <li class="">
                 <a href="/getting-ode.html">Getting ODE</a>
               </li>
-              <li class=" dropdown">
+              <li class="active dropdown">
                 <a href="/user-guide.html" class="dropdown-toggle" data-toggle="dropdown" data-target="#">Documentation<b class="caret"></b></a>
                 <ul class="dropdown-menu">
                   <li><a href="/userguide/">User Guide</a></li>
@@ -83,14 +83,15 @@
       
       <div class="row">
         <div class="span12">
-          <div class="alert alert-warning">
+          <h2 id="overview">Overview</h2>
+<div class="alert alert-warning">
     XQuery is available only in ODE 1.3 or later
 </div>
 
 <p>Apache ODE goes above and beyond the <a href="/ws-bpel-20.html">WS-BPEL</a> specification by allowing the use of <a href="http://www.w3.org/TR/xquery/">XQuery 1.0</a> in queries and expressions.</p>
 <p>Unless specified otherwise, WS-BPEL considers XPath 1.0 to be the query/expression language, which is denoted by the default value of the "queryLanguage" and "expressionLanguage" attributes, viz. "urn:oasis:names:tc:wsbpel:2.0:sublang:xpath1.0". In addition, we have out-of-the-box support for XPath 2.0.</p>
 <p><a name="XQueryExtensions-XQuery1.0"></a></p>
-<h3 id="xquery-10">XQuery 1.0</h3>
+<h2 id="xquery-10">XQuery 1.0</h2>
 <p>To use XQuery 1.0 in your processes just use the following <em>queryLanguage</em> and <em>expressionLanguage</em> attributes:</p>
 <div class="codehilite"><pre><span class="n">queryLanguage</span><span class="o">=</span><span class="s">&quot;urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0&quot;</span>
 <span class="n">expressionLanguage</span><span class="o">=</span><span class="s">&quot;urn:oasis:names:tc:wsbpel:2.0:sublang:xquery1.0&quot;</span>
@@ -100,7 +101,7 @@
 <p>If you want support at the process just add these attributes to your root <em>process</em> element. If you want to stick with XPath 1.0 but want XQuery 1.0 support for a specific assignment you can also define these attributes on an <em>assign</em> element.</p>
 <p>For your convenience, all of the functions and variables, standard or otherwise, that are available in XPath 2.0 have been exposed in XQuery 1.0 as well.</p>
 <p><a name="XQueryExtensions-Examples"></a></p>
-<h4 id="examples">Examples</h4>
+<h3 id="examples">Examples</h3>
 <p>The following snippet illustrates how to use XQuery 1.0 in <em>assign</em> activities. Needless to say, you may use XQuery 1.0 anywhere an expression is permitted, such as in a <em>while</em>, <em>if</em>, <em>repeatUntil</em> or <em>forEach</em> activity.</p>
 <div class="codehilite"><pre><span class="nt">&lt;process</span> <span class="na">name=</span><span class="s">&quot;HelloXQueryWorld&quot;</span> 
     <span class="na">targetNamespace=</span><span class="s">&quot;http://ode/bpel/unit-test&quot;</span>
@@ -126,27 +127,27 @@
             <span class="nt">&lt;/copy&gt;</span>
             <span class="nt">&lt;copy&gt;</span>
                 <span class="nt">&lt;from&gt;</span>
-        typeswitch (<span class="p">$</span><span class="nv">myVar</span><span class="p">.</span><span class="nv">TestPart</span>) 
-          case <span class="p">$</span><span class="nv">a</span> as xs:string return &quot;test&quot;
-          default return &quot;default&quot;
-        <span class="nt">&lt;/from&gt;</span>
+                    typeswitch (<span class="p">$</span><span class="nv">myVar</span><span class="p">.</span><span class="nv">TestPart</span>) 
+                      case <span class="p">$</span><span class="nv">a</span> as xs:string return &quot;test&quot;
+                      default return &quot;default&quot;
+                <span class="nt">&lt;/from&gt;</span>
                 <span class="nt">&lt;to</span> <span class="na">variable=</span><span class="s">&quot;otherVar&quot;</span><span class="nt">/&gt;</span>
             <span class="nt">&lt;/copy&gt;</span>
             <span class="nt">&lt;copy&gt;</span>
                 <span class="nt">&lt;from&gt;</span><span class="cp">&lt;![CDATA[</span>
-<span class="cp">        typeswitch (</span><span class="p">$</span><span class="nv">myVar</span><span class="p">.</span><span class="nv">TestPart</span><span class="cp">) </span>
-<span class="cp">          case </span><span class="p">$</span><span class="nv">a</span><span class="cp"> as text() return &lt;test:content/&gt;</span>
-<span class="cp">          default return &lt;test:content/&gt;</span>
-<span class="cp">        ]]&gt;</span>
-        <span class="nt">&lt;/from&gt;</span>
+<span class="cp">                    typeswitch (</span><span class="p">$</span><span class="nv">myVar</span><span class="p">.</span><span class="nv">TestPart</span><span class="cp">) </span>
+<span class="cp">                      case </span><span class="p">$</span><span class="nv">a</span><span class="cp"> as text() return &lt;test:content/&gt;</span>
+<span class="cp">                      default return &lt;test:content/&gt;</span>
+<span class="cp">                    ]]&gt;</span>
+                <span class="nt">&lt;/from&gt;</span>
                 <span class="nt">&lt;to</span> <span class="na">variable=</span><span class="s">&quot;otherVar&quot;</span><span class="nt">/&gt;</span>
             <span class="nt">&lt;/copy&gt;</span>
             <span class="nt">&lt;copy&gt;</span>
                 <span class="nt">&lt;from&gt;</span>
-        for <span class="p">$</span><span class="nv">loopOnce</span> in (1) 
-        return 
-           concat(bpws:getVariableProperty(&quot;myVar&quot;, &quot;test:content&quot;), &quot;XQuery World&quot;)
-        <span class="nt">&lt;/from&gt;</span>
+                    for <span class="p">$</span><span class="nv">loopOnce</span> in (1) 
+                    return 
+                       concat(bpws:getVariableProperty(&quot;myVar&quot;, &quot;test:content&quot;), &quot;XQuery World&quot;)
+                <span class="nt">&lt;/from&gt;</span>
                 <span class="nt">&lt;to</span> <span class="na">variable=</span><span class="s">&quot;myVar&quot;</span> <span class="na">part=</span><span class="s">&quot;TestPart&quot;</span><span class="nt">/&gt;</span>
             <span class="nt">&lt;/copy&gt;</span>
         <span class="nt">&lt;/assign&gt;</span>
@@ -157,7 +158,7 @@
 
 
 <p><a name="XQueryExtensions-KnownLimitations"></a></p>
-<h4 id="known-limitations">Known Limitations</h4>
+<h3 id="known-limitations">Known Limitations</h3>
 <p>Currently, we do not support:
 <em> The use of modules in XQuery.
 </em> The use of update expressions in XQuery.</p>