Support for ISO Schematron subject attribute
Posted: Wed Apr 02, 2008 12:45 pm
AFAICT Oxygen 9.1 does not implement the subject attribute. Current implementation highlights the context node and while rules can be rewritten to use a different context node, for performance and clarity reasons using subject attribute would be useful.
Example from a (simplified) DITA rule:
Example from a (simplified) DITA rule:
Code: Select all
<pattern>
<rule context="topic"
subject="body/p">
<report test="not(shortdesc | abstract) and
count(body/*) = 1 and
body/p">
In cases where a topic contains only one paragraph, then it is preferable to include this text in the shortdesc element and leave the topic body empty.
</report>
</rule>
</pattern>