Thank you once again George. You have been extraordinarily helpful and
generous with your time. I appreciate it very much.
I think that I now understand! (thanks to your help!)
Here's the processing model of NVDL:
-------------------------------------------
Start of NVDL Processing Model Explanation
-------------------------------------------
1. A section is identified by a namespace, e.g.
<namespace ns="http://www.work.org">
...
</namespace>
2. A section is acted on by specifying one or more actions:
<namespace ns="http://www.work.org">
Action1
Action2
...
</namespace>
For example, this rule specifies two actions - validate and attach - on
the Work section:
<namespace ns="http://www.work.org">
<validate schema="Work.rng"
useMode="distance"/>
<attach useMode="allow"/>
</namespace>
3. Each action is executed using the current section, and then the
child sections are processed, e.g.
This action:
<validate schema="Work.rng"
useMode="distance"/>
specifies, "Validate the current section against Work.rng, and then
process the child section(s) using the mode whose name is distance."
This action:
<attach useMode="allow"/>
specifies, "Attach the current section to the parent section, and then
process the child section(s) using the mode whose name is allow."
-------------------------------------------
End of NVDL Processing Model Explanation
-------------------------------------------
The reason my original NVDL:
<mode name="activity">
<namespace ns="http://www.work.org">
<validate schema="Work.rng"
useMode="distance"/>
<attach />
</namespace>
</mode>
failed is now easily understood:
This action:
<attach />
says, "Attach the current section to the parent section, and then
process the child section (Distance). Since no rule is specified for
processing the Distance child segment, the default rule is used. The
default rule is this:
<anyNamespace>
<reject/>
</anyNamespace>
Thus the Distance child section is rejected with an error.
That's it!
Is my understanding correct?
/Roger
-- DSDL comments To unsubscribe, please send a message with the command "unsubscribe" to dsdl-comment-request@dsdl.org (mailto:dsdl-comment-request@dsdl.org?Subject=unsubscribe)Received on Fri May 23 13:52:29 2008
This archive was generated by hypermail 2.1.8 : Fri May 23 2008 - 12:43:05 UTC