OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help



   Re: [xml-dev] schematron rules anormal behavior (off-topic)

[ Lists Home | Date Index | Thread Index ]

On Thu, 2004-03-04 at 19:35, Pedro Salazar wrote:
> Greetings,
> Has anyone already detected any anormal behavior with schematron rules
> when matching on context?


> More debug: 
> I moved my rule to the top of the pattern, and suddenly it started to
> report. It appears that there is some kind of overflow and last the
> rules aren't processed.
> Anyone can confirm this behavior of schematron?

Yes, and it's not anormal but conform to the specification :) ...

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.

Hope that helps.


> regards,
> Pedro Salazar. 
Have you ever thought about unit testing XSLT templates?
Upcoming XML schema languages tutorial:
 - Santa Clara  -half day- (15/03/2004)        http://masl.to/?J24916E96
Eric van der Vlist       http://xmlfr.org            http://dyomedea.com
(ISO) RELAX NG   ISBN:0-596-00421-4 http://oreilly.com/catalog/relax
(W3C) XML Schema ISBN:0-596-00252-1 http://oreilly.com/catalog/xmlschema


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS