From 533de14532a12b929c8e1fe1a452f8da65eab7b2 Mon Sep 17 00:00:00 2001
From: Martin Goik <goik@hdm-stuttgart.de>
Date: Thu, 1 Oct 2015 08:25:51 +0200
Subject: [PATCH] Start Docbook assembly example

---
 Temp/DocbookAssemblies/Topics/parser.xml    | 20 +++++++++++++++++
 Temp/DocbookAssemblies/Topics/singleton.xml | 18 ++++++++++++++++
 Temp/DocbookAssemblies/assembly.xml         | 24 +++++++++++++++++++++
 3 files changed, 62 insertions(+)
 create mode 100644 Temp/DocbookAssemblies/Topics/parser.xml
 create mode 100644 Temp/DocbookAssemblies/Topics/singleton.xml
 create mode 100644 Temp/DocbookAssemblies/assembly.xml

diff --git a/Temp/DocbookAssemblies/Topics/parser.xml b/Temp/DocbookAssemblies/Topics/parser.xml
new file mode 100644
index 000000000..55ba0893f
--- /dev/null
+++ b/Temp/DocbookAssemblies/Topics/parser.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<topic version="5.1" xmlns="http://docbook.org/ns/docbook"
+       xmlns:xlink="http://www.w3.org/1999/xlink"
+       xmlns:xi="http://www.w3.org/2001/XInclude"
+       xmlns:svg="http://www.w3.org/2000/svg"
+       xmlns:m="http://www.w3.org/1998/Math/MathML"
+       xmlns:html="http://www.w3.org/1999/xhtml"
+       xmlns:db="http://docbook.org/ns/docbook">
+  <info>
+    <title>Parsers in computer science</title>
+  </info>
+
+  <section xml:id="definition">
+    <title>Definition</title>
+
+    <para>The process of analysing a string of symbols, either in natural
+    language or in computer languages, conforming to the rules of a formal
+    grammar.</para>
+  </section>
+</topic>
diff --git a/Temp/DocbookAssemblies/Topics/singleton.xml b/Temp/DocbookAssemblies/Topics/singleton.xml
new file mode 100644
index 000000000..e9965d912
--- /dev/null
+++ b/Temp/DocbookAssemblies/Topics/singleton.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<topic version="5.1" xmlns="http://docbook.org/ns/docbook"
+       xmlns:xlink="http://www.w3.org/1999/xlink"
+       xmlns:xi="http://www.w3.org/2001/XInclude"
+       xmlns:svg="http://www.w3.org/2000/svg"
+       xmlns:m="http://www.w3.org/1998/Math/MathML"
+       xmlns:html="http://www.w3.org/1999/xhtml"
+       xmlns:db="http://docbook.org/ns/docbook">
+  <info>
+    <title>The singleton pattern</title>
+  </info>
+
+  <section xml:id="definition">
+    <title>Definition</title>
+
+    <para>Restrict the instantiation of a class to one object.</para>
+  </section>
+</topic>
diff --git a/Temp/DocbookAssemblies/assembly.xml b/Temp/DocbookAssemblies/assembly.xml
new file mode 100644
index 000000000..17707dac9
--- /dev/null
+++ b/Temp/DocbookAssemblies/assembly.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<assembly version="5.1" xmlns="http://docbook.org/ns/docbook"
+          xmlns:xlink="http://www.w3.org/1999/xlink"
+          xmlns:xi="http://www.w3.org/2001/XInclude"
+          xmlns:svg="http://www.w3.org/2000/svg"
+          xmlns:m="http://www.w3.org/1998/Math/MathML"
+          xmlns:html="http://www.w3.org/1999/xhtml"
+          xmlns:db="http://docbook.org/ns/docbook">
+  <info>
+    <title>Testing assemblies</title>
+  </info>
+
+  <resources>
+    <resource href="Topics/singleton.xml" xml:id="topic_Singleton"/>
+
+    <resource href="Topics/parser.xml" xml:id="topic_Parser"/>
+  </resources>
+
+  <structure>
+    <module renderas="chapter" resourceref="topic_Parser">
+      <module resourceref="topic_Singleton"/>
+    </module>
+  </structure>
+</assembly>
-- 
GitLab