Author: vanto
Date: Mon Dec 31 11:43:05 2012
New Revision: 1427089
URL: http://svn.apache.org/viewvc?rev=1427089&view=rev
Log:
fix formatting.
Modified:
ode/site/trunk/content/extensions/index.mdtext
ode/site/trunk/content/extensions/xquery-extensions.mdtext
Modified: ode/site/trunk/content/extensions/index.mdtext
URL:
http://svn.apache.org/viewvc/ode/site/trunk/content/extensions/index.mdtext?rev=1427089&r1=1427088&r2=1427089&view=diff
==============================================================================
--- ode/site/trunk/content/extensions/index.mdtext (original)
+++ ode/site/trunk/content/extensions/index.mdtext Mon Dec 31 11:43:05 2012
@@ -8,6 +8,7 @@ ODE extends the [WS-BPEL](/ws-bpel-20.ht
* [Activity Failure and
Recovery](#BPELExtensions-ActivityFailureandRecovery)
* [Extension Activities & Extensible Assign
Operations](#BPELExtensions-ExtensionActivities-ExtensibleAssignOperations)
* [XPath Extensions](#BPELExtensions-XPathExtensions)
+ * [XQuery Extensions](#BPELExtensions-XQueryExtensions)
* [External Variables](#BPELExtensions-ExternalVariables)
* [Headers Handling](#BPELExtensions-HeadersHandling)
* [RESTful BPEL, Part I](#BPELExtensions-RESTfulBPEL-PartI)
@@ -50,6 +51,13 @@ Apache ODE extends the default XPath cov
[Read more](xpath-extensions.html)
+<a name="BPELExtensions-XQueryExtensions"></a>
+## [XPath Extensions](xquery-extensions.html)
+
+Apache ODE extends the default XPath coverage provided by the WS-BPEL
specification mostly by adding support for [XQuery
1.0](http://www.w3.org/TR/xquery/) and by offering a few utility extension
functions to make some assignments easier.
+
+[Read more](xquery-extensions.html)
+
<a name="BPELExtensions-ExternalVariables"></a>
## [External Variables](external-variables.html)
Modified: ode/site/trunk/content/extensions/xquery-extensions.mdtext
URL:
http://svn.apache.org/viewvc/ode/site/trunk/content/extensions/xquery-extensions.mdtext?rev=1427089&r1=1427088&r2=1427089&view=diff
==============================================================================
--- ode/site/trunk/content/extensions/xquery-extensions.mdtext (original)
+++ ode/site/trunk/content/extensions/xquery-extensions.mdtext Mon Dec 31
11:43:05 2012
@@ -1,4 +1,8 @@
Title: XQuery Extensions
+Category: documentation
+
+## Overview
+
<div class="alert alert-warning">
XQuery is available only in ODE 1.3 or later
</div>
@@ -8,7 +12,7 @@ Apache ODE goes above and beyond the [WS
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.
<a name="XQueryExtensions-XQuery1.0"></a>
-### XQuery 1.0
+## XQuery 1.0
To use XQuery 1.0 in your processes just use the following _queryLanguage_ and
_expressionLanguage_ attributes:
@@ -20,7 +24,7 @@ If you want support at the process just
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.
<a name="XQueryExtensions-Examples"></a>
-#### Examples
+### Examples
The following snippet illustrates how to use XQuery 1.0 in _assign_
activities. Needless to say, you may use XQuery 1.0 anywhere an expression is
permitted, such as in a _while_, _if_, _repeatUntil_ or _forEach_ activity.
@@ -49,27 +53,27 @@ The following snippet illustrates how to
</copy>
<copy>
<from>
- typeswitch ($myVar.TestPart)
- case $a as xs:string return "test"
- default return "default"
- </from>
+ typeswitch ($myVar.TestPart)
+ case $a as xs:string return "test"
+ default return "default"
+ </from>
<to variable="otherVar"/>
</copy>
<copy>
<from><![CDATA[
- typeswitch ($myVar.TestPart)
- case $a as text() return <test:content/>
- default return <test:content/>
- ]]>
- </from>
+ typeswitch ($myVar.TestPart)
+ case $a as text() return <test:content/>
+ default return <test:content/>
+ ]]>
+ </from>
<to variable="otherVar"/>
</copy>
<copy>
<from>
- for $loopOnce in (1)
- return
- concat(bpws:getVariableProperty("myVar", "test:content"),
"XQuery World")
- </from>
+ for $loopOnce in (1)
+ return
+ concat(bpws:getVariableProperty("myVar",
"test:content"), "XQuery World")
+ </from>
<to variable="myVar" part="TestPart"/>
</copy>
</assign>
@@ -79,7 +83,7 @@ The following snippet illustrates how to
<a name="XQueryExtensions-KnownLimitations"></a>
-#### Known Limitations
+### Known Limitations
Currently, we do not support:
* The use of modules in XQuery.