Process some XSL code
Description
The resulting XML will be inserted in place. The XSL will be run on an empty document
(therefore any XPath related to the input XML will be an empty nodeset). The variables in
the current scope are passed as XSL parameters.
Attributes
- async (Boolean default: true) - Asynchronous processing. For parse tags,
should the request be enqueued (false) or processed before its next sibling. For other
elements, this attribute only makes a difference when they contain asynchronous requests
which need to be processed before the element is processed. In this case, when false the
element's next sibling will only be processed after the current element, when true
Watson Explorer won't wait for the current element to
be processed before processing its next sibling.
- elt-id (Integer) - Usage: Internal
- max-elt-id (Integer) - Usage: Internal
- execute-acl (Text)
- process (Text) - An XPath determining which of the attributes and/or
children will be processed. Currently only "", "*", "@*" and "*|@*" are supported.
- encode (May only be: encode) - Return the data (which may be binary) into
an schema.x.element.encoded-data node that can be printed.
Examples
Input Example:
<declare name="password" initial-value="BJLLFIKIFHGEPEKGKEDAIGFEOMLMHKHIEOPOCJCJMAEKAIOPMKBHGFJLLKJFIPGBNDMBIFIPGBNDNFIPGBNDMCNJFGJEIFAKOEFGNP" type="password"/>
<process-xsl>
<xsl:param name="password"/>
<xsl:template match="/">
<declare name="v1" initial-value="v1"/>
<declare name="v2" initial-value="v2"/>
<xsl:value-of select="$password"/>
</xsl:template>
</process-xsl>
Output Example:
test
<declare name="password" initial-value="BJLLFIKIFHGEPEKGKEDAIGFEOMLMHKHIEOPOCJCJMAEKAIOPMKBHGFJLLKJFIPGBNDMBIFIPGBNDNFIPGBNDMCNJFGJEIFAKOEFGNP" type="password"/>
<declare name="v2" initial-value="v2"/>
<declare name="v1" initial-value="v1"/>