From 85b5e433eca14fe5bd73aedd5f26dc4e469ea051 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Fri, 18 Aug 2017 10:24:57 +0300
Subject: [PATCH] Link exercises

---
 XmlCross/xmlcross.xml | 53 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)

diff --git a/XmlCross/xmlcross.xml b/XmlCross/xmlcross.xml
index 40e67184f..9bd9f03f0 100644
--- a/XmlCross/xmlcross.xml
+++ b/XmlCross/xmlcross.xml
@@ -1703,6 +1703,35 @@ See &lt;xref linkend="intro"/&gt; ...</programlisting>
             </glossentry>
           </glosslist>
         </figure>
+
+        <qandaset defaultlabel="qanda" xml:id="xmlc_qanda_linkCreation">
+          <title>Internal document links</title>
+
+          <qandadiv>
+            <qandaentry>
+              <question>
+                <para><xref linkend="glo_Docbook"/> allows for defining
+                internal links using pairs of <code>ID</code> /
+                <code>IDREF</code> attributes. See the <quote>Example</quote>
+                section at the bottom of <uri
+                xlink:href="http://tdg.docbook.org/tdg/5.1/link.html">http://tdg.docbook.org/tdg/5.1/link.html</uri>.</para>
+
+                <para>Use the XMLMind editor to create at least one internal
+                link in your <xref linkend="glo_Docbook"/> sample document
+                like:</para>
+
+                <programlisting language="xml">...
+&lt;para&gt; ... see &lt;link linkend="intro"&gt;detailed explanation&lt;/link&gt;.&lt;/para&gt;
+...
+&lt;chapter xml:id="intro"&gt;
+...</programlisting>
+
+                <para>What happens if the target ID vanishes i.e. by deleting
+                the corresponding chapter?</para>
+              </question>
+            </qandaentry>
+          </qandadiv>
+        </qandaset>
       </section>
 
       <section xml:id="xmlc_sect_topLevelElement">
@@ -2346,6 +2375,30 @@ xmlns="http://docbook.org/ns/docbook"&gt;
           </calloutlist></td>
       </tr>
     </informaltable>
+
+    <qandaset defaultlabel="qanda" xml:id="xmlc_qanda_linkCreationModular">
+      <title>Internal links and modular documents</title>
+
+      <qandadiv>
+        <qandaentry>
+          <question>
+            <para>Start from your internal link example document from your
+            <xref linkend="xmlc_qanda_linkCreation"/> exercise. Decompose this
+            document into a master document and one document per <tag
+            class="starttag">chapter</tag>.</para>
+
+            <para>Is link consistency still being guaranteed? What about
+            internal links spanning file boundaries?</para>
+
+            <tip>
+              <para>Using the XMLMind editor there is a <option>Tools</option>
+              --&gt; <option>Use as Master Document</option> option being
+              prerequisite when working with modular documents.</para>
+            </tip>
+          </question>
+        </qandaentry>
+      </qandadiv>
+    </qandaset>
   </chapter>
 
   <chapter annotations="slide" xml:id="xmlc_chap_RelaxNG">
-- 
GitLab