[Schematron] Schematron Message element: multiple message types per rule?

G. Ken Holman gkholman at CraneSoftwrights.com
Mon Jul 13 08:41:49 EDT 2009


Thank you, Rick, for taking from your time in such idyllic environs 
to overview the nuances of the answers to my questions.

At 2009-07-13 22:03 +1000, rjelliffe at allette.com.au wrote:
>in the Malaysian version of Brazilia; I have some fresh Thai longans in
>front of me, and I am looking at a hill where there are supposed to be
>monkeys, which I have never seen in the wild before.

Kewl!

>Yes. Well, actually it [flag] is not a boolean value (true, false) but a unary
>value (it either exists or doesn't exist.) ... The flag is an OR of the
>results of all the assertions that have it.
>...
>In the SVRL, if you use the role attribute, then each assertion that fails
>will have an SVRL failed-assertion with the role but not with the flag.
>The document validation as a whole will have the flags that were raised.
>...
>An important (to my mind anyway) distinction in Schematron is that it is
>not a type system. In particular we don't bind a type to a node. So in
>Schematron we are not defining type properties of the context node. The
>context is only a convenient place to split the assertions that belong to
>a pattern. But we certainly may want to identify the subject of the
>assertions of a rule.

Since I only have one such concept in CVA files, I'll set both the 
flag= and the role= attributes to the CVA mark= value and the 
implementation can choose to take advantage of either concept in the 
end result.  CVA is not designed specifically for Schematron, so I 
don't want to shoehorn all Schematron features into CVA.

Thank you again, Rick!

. . . . . . . . . Ken

--
XSLT/XSL-FO/XQuery hands-on training - Oakland, CA, USA 2009-08-03
Crane Softwrights Ltd.          http://www.CraneSoftwrights.com/s/
Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video
Video lesson:    http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18
Video overview:  http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18
G. Ken Holman                 mailto:gkholman at CraneSoftwrights.com
Male Cancer Awareness Nov'07  http://www.CraneSoftwrights.com/s/bc
Legal business disclaimers:  http://www.CraneSoftwrights.com/legal



More information about the Schematron mailing list