Petals-BC-REST 1.1.0+

compared with
Key
This line was removed.
This word was removed. This word was added.
This line was added.

Changes (1)

View Page History
** the sub-element '{{transformation}}' defines the transformation to apply if the condition matches. Now, only XSL transformations are supported through the sub-element '{{xsl}}':
*** if the HTTP body response is an XML or JSON payload, it is used as XML to transform, and the IN message payload can be loaded by the XSL through a variable {{<xsl:variable name="inPayload" select="document('petals-bc-rest:in-payload')"/>'}}
*** otherwise the IN message payload is used, and the content identifier of the attachment is available as parameter '{{content-id}}' from namespace '{{\http://petals.ow2.org/bc/rest/xsl/param/output/1.0}}',
*** each URI parameter is available as transformation parameter,
* the sub-elements '{{otherwise-out}}', '{{otherwise-fault}}' or '{{otherwise-error}} define the default transformation to apply when no condition transformation matches the HTTP body response. The result of the transformation will be used as OUT response, fault or error. Only one default transformation can be defined: