From 17c09aec313755824066e2bb149033a9bd14d2e4 Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Wed, 24 Oct 2018 11:14:43 +0200 Subject: [PATCH] <appendix> requires @xml:id attribute. --- Doc/Sd1/appendix.xml | 2 +- Doc/lectures.xml | 4 ++-- ws/Xmlmind/Patch/040_hdmBusinessIntegrityRules.patch | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Doc/Sd1/appendix.xml b/Doc/Sd1/appendix.xml index 44d6f41b8..1999ed4c2 100644 --- a/Doc/Sd1/appendix.xml +++ b/Doc/Sd1/appendix.xml @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<appendix annotations="slide" version="5.1" +<appendix annotations="slide" version="5.1" xml:id="sd1_appendix" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xila="http://www.w3.org/2001/XInclude/local-attributes" diff --git a/Doc/lectures.xml b/Doc/lectures.xml index 4e14f9830..f10c26e9b 100644 --- a/Doc/lectures.xml +++ b/Doc/lectures.xml @@ -97,7 +97,7 @@ <xi:include href="Sd1/appendix.xml" xpointer="element(/1)"/> </part> - <part xml:id="sda1" annotations="forumId=6;"> + <part annotations="forumId=6;" xml:id="sda1"> <title>Structured Data and Applications 1</title> <xi:include href="Sda1/prerequisites.xml" xpointer="element(/1)"/> @@ -114,7 +114,7 @@ <xi:include href="Sda1/mongodb.xml" xpointer="element(/1)"/> - <appendix> + <appendix xml:id="sda1_appendix"> <title>Appendix</title> <xi:include href="Sda1/projects.xml" xpointer="element(/1)"/> diff --git a/ws/Xmlmind/Patch/040_hdmBusinessIntegrityRules.patch b/ws/Xmlmind/Patch/040_hdmBusinessIntegrityRules.patch index a2403a3c2..e9ec41945 100644 --- a/ws/Xmlmind/Patch/040_hdmBusinessIntegrityRules.patch +++ b/ws/Xmlmind/Patch/040_hdmBusinessIntegrityRules.patch @@ -26,7 +26,7 @@ + </s:pattern> + + <s:pattern name="Mandatory Id definition constraint"> -+ <s:rule context="db:preface|db:chapter|db:section|db:figure|db:equation|db:table|db:qandaset"> ++ <s:rule context="db:preface|db:chapter|db:section|db:appendix|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> @@ -76,7 +76,7 @@ + + <s:pattern> + <s:title>Mandatory Id definition constraint</s:title> -+ <s:rule context="db:preface|db:chapter|db:section|db:figure|db:equation|db:table|db:qandaset"> ++ <s:rule context="db:preface|db:chapter|db:section|db:appendix|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> -- GitLab