Wondering if anybody has successfully implemented applications using dp:variale() extension in XSLT, and hope to share experience and knowledge. I can't find a complete documents on how it is used, but have an article posted on IBM site (Link:
http://www.ibm.com/developerworks/websphere/library/techarticles/0708_maze/0708_maze.html).
I am following the sample and can see from the Probe the context variables are set as global variables, but just can not get the value through dp:variable().
name type value
var://context/tempvar1/_extension/variables node-set (show nodeset)
var://context/tempvar1/request/DestinationSystem string 'SYS1'
var://context/tempvar1/request/MessageID string 'TEST0000000000000000000000000001'
var://context/tempvar1/request/OriginationSystem string 'SOAPSCOPE'
var://context/tempvar2/_extension/messages node-set (show nodeset)
There values are retrieved in the following XSLT code, but they always come out as blank.
<responseheader:DestinationSystem>
<xsl:value-of select="dp:variable('var://context/tempvar1/request/OriginationSystem')"/>
</responseheader:DestinationSystem>
<responseheader:OriginationSystem>
<xsl:value-of select="dp:variable('var://context/tempvar1/request/DestinationSystem')"/>
</responseheader:OriginationSystem>
<responseheader:CorrelationID>
<xsl:value-of select="dp:variable('var://context/tempvar1/request/MessageID')"/>
</responseheader:CorrelationID>
Any idea what's going wrong? Thanks for your attention.