Datapower extension functions and extension elements

I am currently involved into Websphere Datapower SOA appliance development. However I am getting confused between two entities. Datapower extension functions and elements.

Can someone tell me what is main difference between the two and why in Datapower extension function namespace we only give:

xmlns:dp="http://www.datapower.com/extensions"

while in Datapower extension elements we mention the following:

xmlns:dp="http://www.datapower.com/extensions"
extension-element-prefix="dp"
exclude-result-prefix="dp"

Upvotes: 0

Views: 3940

Answers (2)

Ajitabh Sharma
Ajitabh Sharma

Reputation: 101

Datapower uses XSLT to manipulate any part of incoming/outgoing message. Now while implementing this feature it was realized that XSLT functions needs to be enhanced to support the particular processing need of datapower. As a result datapower extended the XSLT function library, in some cases extending existing functions [like xsl:message] and in other cases adding new elements [like dp:set-response-header] to XSLT library. As a pre-requisite to do this, one needs to define a namespace for this extended library and hence the new datapower namespace.

Upvotes: 0

Isaac G Sivaa
Isaac G Sivaa

Reputation: 1299

extension-element-prefix="dp" :- Used to inform XSLT process that elements with 'dp' are extension elements. needs more process towards elements. (can't simply print)

exclude-result-prefix="dp" :- If no need to send dp namespace in the output payload as it is internal processing namespace for extension element or function. We can declare many namespace prefix with spaces.

Upvotes: 0

Related Questions