You are here:
Popular Formats
>
XML (Extensible Markup Language) Reader/Writer
>
xfMap
>
Reading the Input XML Document
>
Mapping Rule States (activation, execution, suspension, and de-activation)
Mapping Rule States (activation, execution, suspension, and de-activation)
This section describes the different states of a mapping rule. A mapping rule can either be activated, suspended, executing, or de-activated.
让Ebe the element in the input XML document whose start-tag is being read,
letCbe the context element; we define thecontext element是most recently read element for which its end-tag is yet to be read, and
letRbe a mapping rule in the xfMap document that is considered for matching (see thesearch-setssection below, which describes when a mapping rule can be considered for matching),
then the following lists the possible states for a mapping ruleR:
- Risactivated, ifRmatchesE.
- Risexecutingas long as it is activated andEequalsC.
- Rissuspendedas long as it is activated andEdoes not equalC.
- Risde-activatedafterE’s end-tag is read.
Note:All mapping rules in the xfMap document are initially deactivated.