BPEL 2.0 provides two XPath extension functions, each in a specific namespace:
namespace URI: "http://docs.oasis-open.org/wsbpel/2.0/process/executable"
usual prefix: bpel
The function doXSLTransform lets you transform data from an XML source, as described in Chapter 8.
object bpel:doXslTransform(string, node-set,(string, object)*)
The parameters are
a path to the XSL
a variable that holds the XML source; or an XPath expression that resolves to an element node, which may contain descendants
optionally, pairs of parameter names and values for use by the XSL
The function returns a result document.
Here's an example.
bpel:doXslTransform ("urn:stylesheets:AddNewVehicle.xsl", $AllVehicles, "NewVehicle", $OneVehicle)
The function getVariableProperty returns the value of a property. The value may be of a simple or complex type. We describe getVariableProperty in Chapter 7.
object bpel:getVariableProperty(string, string)
The two parameters must be quoted strings. The first is a variable name, and the second is a property alias.
Here's an example.
theAddress = bpel:getVariableProperty ("quoteRequest", "emailAddr")