dp:encode()
Encodes an input string with base-64 encoding or URL-encoding.
Namespace declaration
xmlns:dp="http://www.datapower.com/extensions"
Syntax
dp:encode(string, method)
Parameters
- string
- The
xs:stringthat identifies the string to encode. - method
- The
xs:stringthat identifies the encoding method and must take one of the following values.base-64- Specifies that the string is encoded with base-64-encoding.
url- Specifies that the string is encoded with URL encoding.
Guidelines
The extension passes all arguments as XPath expressions.
Results
An xs:string contained
the encoded input string.
Example
…
<xsl:variable name="binFlow" select="dp:encode($fromCustomer,'base-64')"/>
…