On 05/21/2017 11:01 AM, Leif Halvard Silli wrote:
There is a couple of ID reference errors in Section 3 («What is an
assembly»)
<http://www.xmlmind.com/tutorials/DocBookAssemblies/index.html#what_is_assembly>
of «DocBook Assemblies and Topics for the Impatient»:

In the resource and module elements of the assembly document example
refer to topic elements with xml:id="topic1", xml:id="topic2" and
xml:id="topic3".

However, in the very topic file examples (as well as in the realized
document example), the word 'topic' is shortened to just 't', resulting
in xml:id="t1", xml:id="t3" and xml:id="t3".


These are not typos.

This xml:id attributes used internally in an assembly like in:
---
   <resource href="topic1.xml" xml:id="topic1"/>

   <module resourceref="topic1"/>
---

are not related in any way to the xml:id attributes found in the referenced topic files.

Hence a realized pseudo-document like:
---
<UNKNOWN xmlns="http://docbook.org/ns/docbook"; version="5.1">
  <topic version="5.1" xml:base="file:/home/john/samples/topic1.xml"
         xml:id="t1">
    <info>
      <title>Title of topic #1</title>
    </info>
    ...
---

is OK. I mean, generating <topic...xml:id="topic1"> in the realized document because of the IDs specified in the assembly would be an error.



--
XMLmind XML Editor Support List
xmleditor-support@xmlmind.com
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to