- Reduce the misuse of role attribute; role="directory" should actually be

class="directory"
- Add constraint to enforce this
This commit is contained in:
Gabor Kovesdan 2013-04-04 11:40:58 +00:00
parent 843e63283c
commit a6684b4306
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/projects/xml-tools/; revision=41366
75 changed files with 337 additions and 331 deletions

View file

@ -10,6 +10,12 @@
</rule>
</pattern>
<pattern name="Check filenames">
<rule context="//filename">
<report test="@role = 'directory'">Filename (<xsl:value-of select="."/>) has role="directory"; use class="directory"</report>
</rule>
</pattern>
<pattern name="Check cross-reference validity">
<rule context="//link">
<assert test="* or normalize-space()">Link (<xsl:value-of select="@linkend"/>) element must have a content; or use xref to auto-generate the linking text.</assert>