Skip to content
Snippets Groups Projects
Commit 44b39b36 authored by Goik Martin's avatar Goik Martin
Browse files

Adding <preface> @xml:id rule to schematron integrity checks

parent 43c06aa1
No related branches found
No related tags found
No related merge requests found
......@@ -28,7 +28,7 @@ diff -Naur xmlmind.orig/addon/config/docbook5/rng/V5.0/docbook.sch xmlmind/addon
+ </s:pattern>
+
+ <s:pattern name="Mandatory Id definition constraint">
+ <s:rule context="db:chapter|db:section|db:figure|db:equation|db:table|db:qandaset">
+ <s:rule context="db:preface|db:chapter|db:section|db:figure|db:equation|db:table|db:qandaset">
+ <s:assert test="@xml:id">Each chapter,section, subection,... must have a unique id.</s:assert>
+ </s:rule>
+ </s:pattern>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment