Given a DOM node, selects the next node that matches a specified pattern.
Class Name |
|
---|---|
Component |
|
Required Input Parameters
node
The DOM node to pass to this servlet bean
match
The pattern that is used to select the next node. This pattern can be any XPath expression, as defined in the XPath specification. See http://www.w3.org/TR/xpath.
Examples of patterns:
| Select a comment child of the current node |
| Select the widget-order node with the id attribute 1111 |
| Select a widget-order node |
| Select any widget-order node that is a subchild that is not the first |
Output Parameters
matched
The node that is matched.
Open Parameters
output
Rendered when a node is selected. The result is bound to the matched output parameter.
failure
Rendered when there is a failure during the XML query.
empty
Rendered when no node is selected.
unset
Rendered when the node
parameter is not set.
Usage Notes
NodeMatch selects the next DOM node that matches a pattern.