match |
xs:string |
|
. |
optional |
|
The<icode type="attribute">match</icode>attribute defines anchor nodes for an activity element. |
For each selected anchor node, the command of the activity element will be executed. For each execution, the context will be set to the anchor node. |
Exception: The<icode type="attribute">match</icode>attribute of the<a ref="#sqf_stringReplace">
<icode type="element">sqf:stringReplace</icode>
</a>element should only select text nodes. |
Value
XPath expression. The context of relative expressions is the context of the related Schematron rule. |
Default
By default the anchor node is the context node of the related Schematron rule. |
|
node-type |
sqf:nodeTypeType |
|
|
optional |
|
The<icode type="attribute">node-type</icode>attribute defines the node type of the nodes to be added. The attribute is required, if the target attribute is set. |
If the<icode type="attribute">node-type</icode>value is missing, the activity element should not have a<icode type="attribute">target</icode>attribute. In this case the nodes to be added will be defined by the activity elements content or<icode type="attribute">select</icode>attribute. |
|
select |
xs:string |
|
|
optional |
|
The<icode type="attribute">select</icode>attribute defines nodes or an atomic value as the content of the node to be added. If the<icode type="attribute">select</icode>attribute is set, the activity element should be empty. |
The selected nodes will be copied into the node to be added. Unlike a deep copy function, the copied nodes could be manipulated by the current or other activity elements. |
Value
XPath expression. The context of relative expressions is the anchor node. |
Default
There is no default value. If the<icode type="attribute">select</icode>attribute is not set, the content of the activity element defines the content of the nodes to be added. |
|
target |
xs:string |
|
|
optional |
|
This attribute defines the name of the node to be added. The attribute is required if the<icode type="attribute">node-type</icode>attribute is specified and the value is not<icode type="attributeValue">comment</icode>. |
Value
A string to define a node name. The string can be specified by XPath expressions which are marked by curly brackets. After processing, the name must be valid to the XML Schema type xs:QName. |
Prefixes must be attached to a namespace in the current context of the Schematron schema. Names without prefixes will be attached to the namespace declared by the<icode type="element">sqf:default-namespace</icode>element or to the null namespace. |
|
use-when |
xs:string |
|
true() |
optional |
|
A condition for the action of the activity Element. The action will just be executed, if the condition returns true. |
value
XPath expression. It expects as return value an xs:boolean. |
|
Wildcard: ANY attribute from ANY namespace OTHER than 'http://purl.oclc.org/dsdl/schematron'
|