|
| <param> |
|
Description
-
Param node provides a way to pass a parameter to a stylesheet and may be
only used as a child of a filter or a
template nodes.
...
<filter uri="style.xsl">
<param name="arg1" select="'value1'"/>
<param name="arg2" select="concat('coord-', @x)"/>
<param name="arg3" select="concat('coord-', @y)"/>
...
</filter>
... |
Three parameters named "arg1", "arg2" and "arg3" will be passed to the
style.xsl stylesheet, whose respective values set to "value1",
"coord-23" (if the x attribute of the current node is set to 23)
and "coord-36" (if the y attribute of the current node is set to 36).
Those parameters may then be used in the stylesheet by using <xsl:param>
instructions.
Warning: you must never use a parameter named "root".
This is a reserved parameter name in Ejen (you will get an exception if you
try to use it). This "root" parameter is always and automaticaly passed to
the stylesheet in order to access the entire XML tree if the current node
is a fragment of this tree (see foreach
node about how to change the current node).
Attribute Summary
Name | Default Value | Optional | Accepted Values |
---|
name | | false | | select | | false | |
Attribute Detail
- name
-
name of the parameter.
- select
-
value of the parameter (any valid XPath expression).
Children
-
No.
|
|