RE: rule context="X" semantic?
"Daniel Cazzulino" <[email protected]> Thu, 4 Mar 2004 17:01:15 -0300
| Newsgroups | gmane.text.xml.schematron |
|---|---|
| Organization | Lagash Systems SA |
| Message-ID | <[email protected]> |
I believe it's more along the lines: a node can only be evaluated once in a pattern. Therefore, if your "B" node was matched by a previous rule context, it won't be taken into account rules following it inside the same pattern. Have a look at the following clarification from Rick on the topic of rule contexts: http://sourceforge.net/mailarchive/forum.php?forum_id=4130&max_rows=25&style =flat&viewmonth=200301&viewday=1 Daniel Cazzulino [MVP XML] Clarius SA http://weblogs.asp.net/cazzu http://aspnet2.com -----Mensaje original----- De: [email protected] [mailto:[email protected]] En nombre de Pedro Salazar Enviado el: Thursday, March 04, 2004 4:13 PM Para: [email protected] Asunto: Re: [Schematron-love-in] rule context="X" semantic? > I found the buggy here. > > I have my schematron rules divided by several patterns. However, the > patterns by them selfs are quite large, with about 20 rules each?... > > So, I was trying to pick the rule with bug and put it on a separated > file (isolated from the others) to show you. Strange but isolated it > worked!! So, I picked that rule and I put it on the top of my pattern > element. What happened? - I worked too!! > > It appears that there is some kind of overflow. Can you confirm this > behavior? If you want I may send you may case sample. > Correction: it's not an abnormal behavior but just a conform to the specification. This is the behavior of schematron in respect of patterns: " For each node and each pattern, the rules are evaluated in the order in which they appear in the Schematron schema and this evaluation stops after the first matching rule. " (from Eric van der Vlist in "xml-dev" mailing list) -- -PS ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ Schematron-love-in mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/schematron-love-in ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click