@rowspan not found by Schematron rule in oXygen
Posted: Thu Jul 06, 2017 6:01 pm
Hi
Given the following XML (I'm validating against JATS 1.1 Archiving DTD):
...
<thead>
<tr>
<th rowspan="2">Year</th>
<th colspan="6" rowspan="1">
<italic>n</italic> (%) by LFA</th>
<th rowspan="2">Overall</th>
</tr>
...
I have the following Schematron rule to check for the presence of @rowspan on <th>:
<sch:rule context="th[@rowspan]">
<sch:report test="true()">Don't use the rowspan attribute</sch:report>
</sch:rule>
However, this rule finds ALL <th>, not just those with @rowspan. For some odd reason, the same rule re-written as
<sch:rule context="th[@align]">
<sch:report test="true()">Don't use the align attribute</sch:report>
</sch:rule>
will successfully find ONLY those <th> with @align or @colspan, so this problem seems limited to @rowspan only. The same problem exists for evaluating @rowspan on <td>. I am using oXygen V 19 for PC. Note that there are no competing rules with the same context.
Is this a bug? I had the same problem in oXgen v 18.
Any advice appreciated.
Given the following XML (I'm validating against JATS 1.1 Archiving DTD):
...
<thead>
<tr>
<th rowspan="2">Year</th>
<th colspan="6" rowspan="1">
<italic>n</italic> (%) by LFA</th>
<th rowspan="2">Overall</th>
</tr>
...
I have the following Schematron rule to check for the presence of @rowspan on <th>:
<sch:rule context="th[@rowspan]">
<sch:report test="true()">Don't use the rowspan attribute</sch:report>
</sch:rule>
However, this rule finds ALL <th>, not just those with @rowspan. For some odd reason, the same rule re-written as
<sch:rule context="th[@align]">
<sch:report test="true()">Don't use the align attribute</sch:report>
</sch:rule>
will successfully find ONLY those <th> with @align or @colspan, so this problem seems limited to @rowspan only. The same problem exists for evaluating @rowspan on <td>. I am using oXygen V 19 for PC. Note that there are no competing rules with the same context.
Is this a bug? I had the same problem in oXgen v 18.
Any advice appreciated.