[Schematron] report or assert behavior in pattern
Ganesh Babu N
nbabuganesh at gmail.com
Mon Aug 3 05:14:27 EDT 2009
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
More information about the Schematron
mailing list