[dsdl-comment] Re: Section with a child section (whichis attachedto its parent), and the child section itself has a child section (which isnotattached to its parent)

From: Costello, Roger L. <costello@mitre.org>
Date: Thu May 22 2008 - 13:46:08 UTC

George, this is awesome! Thank you so much!

I am very close to understanding, but there's one tiny piece that I'm
missing.

In my example I have three sections: Diary, Work, and Distance.

The Diary section specifies one action: validate against Diary.xsd

The Work section specifies two actions: validate against Work.rdf and
attach

The Distance section specifies one action: validate against
Distance.xsd

For brevity, let me denote:

R = the Diary section
W = the Work section
D = the Distance section

validateR = validate against Diary.xsd
validateW = validate against Work.rdf
validateD = validate against Distance.xsd

The mapping vectors (interpretations) created are:

(R, validateR) (W, validateW) (D, validateD)
(R, validateR) (W, attach) (D, validateD)

It appears to me that this is the set of validations that will occur:

ValidateR will be applied on a fragment containing R and W
ValidateW will be applied on a fragment containing W
ValidateD will be applied on a fragment containing D

But apparently that's not the case. What actually happens is:

ValidateW will be applied on a fragment containing W and D

Why is this?

I understand why this would cause an error (Word.rdf doesn't permit a
<Distance> element), but I don't understand why ValidateW would be
applied to both W and D? If the Distance section had an attach action
then I could understand why ValidateW would be applied to both W and D.

/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 Thu May 22 15:47:55 2008

This archive was generated by hypermail 2.1.8 : Thu May 22 2008 - 15:13:02 UTC