[Schematron] report or assert behavior in pattern
Fraser Goffin
goffinf at googlemail.com
Mon Aug 3 05:32:02 EDT 2009
I believe that only a SINGLE rule within a pattern construct is ever
executed, so presumably the rule with the context of 'para' is always
getting executed.
Fraser.
2009/8/3 Ganesh Babu N <nbabuganesh at gmail.com>:
> Dear All,
>
> <pattern test="para">
>
> <rule context="para">
> <report test="not(ends-with(.,'.'))"> para is not ending with
> period </report>
> </rule>
>
> <rule context="*">
> <report test="not(ends-with(.,'.'))[last()]"> <name/> is not
> ending with period </report>
> </rule>
> </pattern>
>
> In the above two reports only first one is working and 2nd one is not
> working. But when we move the 2nd report to another pattern it is
> working. Please clarify on why report is working differently based on
> pattern.
>
> Regards,
> Ganesh
> _______________________________________________
> Schematron mailing list
> Schematron at eccnet.com
> http://www.eccnet.com/mailman/listinfo/schematron
>
More information about the Schematron
mailing list