From 68c811f4ea207e55119e79311b55303d17df1323 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Thu, 12 Jul 2018 16:59:09 +0200 Subject: [PATCH 1/3] WIP: First draft for splitting at xml:base --- en/xml/dbc-structure.xml | 1 + en/xml/structure/splitdb/db-xmlbase-split.xsl | 76 +++++++++++++++++++ en/xml/structure/topic.splitdb-xmlbase.xml | 74 ++++++++++++++++++ 3 files changed, 151 insertions(+) create mode 100644 en/xml/structure/splitdb/db-xmlbase-split.xsl create mode 100644 en/xml/structure/topic.splitdb-xmlbase.xml diff --git a/en/xml/dbc-structure.xml b/en/xml/dbc-structure.xml index fa80755f..9e2c4ee7 100644 --- a/en/xml/dbc-structure.xml +++ b/en/xml/dbc-structure.xml @@ -93,6 +93,7 @@ + diff --git a/en/xml/structure/splitdb/db-xmlbase-split.xsl b/en/xml/structure/splitdb/db-xmlbase-split.xsl new file mode 100644 index 00000000..9d9c7752 --- /dev/null +++ b/en/xml/structure/splitdb/db-xmlbase-split.xsl @@ -0,0 +1,76 @@ + + + + + + + + + + + + index + .xml + + + + + + + + + + + + + + + + + + + + + + + xml + + + + + + + + + + + + UTF-8 + + + + + + + + + + + + + xml + + + UTF-8 + + + + + + + + + diff --git a/en/xml/structure/topic.splitdb-xmlbase.xml b/en/xml/structure/topic.splitdb-xmlbase.xml new file mode 100644 index 00000000..23814372 --- /dev/null +++ b/en/xml/structure/topic.splitdb-xmlbase.xml @@ -0,0 +1,74 @@ + + + +
+ Splitting DocBook 5 Documents at <tag class="attribute">xml:base</tag> Attributes + + + splitting + xml:base + + + + modules + + + + +
+ Problem + You have a big DocBook document, like a book, which contains + xml:base attributes. You want to get files + that are splitted at that attribute and replaced by an XInclude element. + +
+
+ Solution + Use the db-xmlbase-split.xsl stylesheet. For example, lets assume + the following DocBook 5 document: + + Applying the above template would lead to the following tree: + out/ +├── a/ +│   └── index.xml +├── b/ +│   └── index.xml +└── index.xml +
+
+ Discussion + TBD. +
+
+ See Also + + + + + + + + + + + +
+
From 0829da2d18eda99bf914f2ac6774fbb637eee030 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Fri, 20 Jul 2018 17:16:15 +0200 Subject: [PATCH 2/3] Update --- en/xml/structure/splitdb/db-xmlbase-split.xsl | 215 ++++++++++++++++-- 1 file changed, 191 insertions(+), 24 deletions(-) diff --git a/en/xml/structure/splitdb/db-xmlbase-split.xsl b/en/xml/structure/splitdb/db-xmlbase-split.xsl index 9d9c7752..6ef7de4c 100644 --- a/en/xml/structure/splitdb/db-xmlbase-split.xsl +++ b/en/xml/structure/splitdb/db-xmlbase-split.xsl @@ -1,11 +1,12 @@ + - - @@ -14,6 +15,37 @@ index .xml + + + + + + / + + + + + + + + + + + + + + + + + + + + + + + + + @@ -22,24 +54,168 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + START + + END + + + + + + + + + + + + + + + + + start + + base= + + + + + End + + + + + + + + + + + . + + + + + + + + + + + + + DIRNAME: + + + + + + + + + - - - + + + + + + + + + + xml - - + + @@ -52,25 +228,16 @@ - + - + + + + + + - - - xml - - - UTF-8 - - - - - - - - From f8921c63f3c7d05cbb515ad1cd55a64d1a284732 Mon Sep 17 00:00:00 2001 From: Thomas Schraitle Date: Mon, 23 Jul 2018 10:11:29 +0200 Subject: [PATCH 3/3] Add FO namespace in oXygen config --- DocBook-Cookbook.xpr | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/DocBook-Cookbook.xpr b/DocBook-Cookbook.xpr index 53dc56c7..2cd21276 100644 --- a/DocBook-Cookbook.xpr +++ b/DocBook-Cookbook.xpr @@ -1577,6 +1577,8 @@ http://www.w3.org/1998/Math/MathML svg http://www.w3.org/2000/svg + fo + http://www.w3.org/1999/XSL/Format @@ -1679,4 +1681,4 @@ - \ No newline at end of file +