summaryrefslogtreecommitdiff
path: root/masterdb/Makefile.am
diff options
context:
space:
mode:
authorGaetan Nadon <memsize@videotron.ca>2011-03-02 09:06:04 -0500
committerGaetan Nadon <memsize@videotron.ca>2011-03-29 16:06:09 -0400
commit93238ddbeabef3b131cae48d3f35e9f541ec545b (patch)
treef11caaa268fb0a08248ea6b369d39281d291ebf1 /masterdb/Makefile.am
parent3d6307d418c694b103e8589c1911c053928ae033 (diff)
DocBook/XML: add support for docbook external references
Documents external references ----------------------------- A new feature with version 1.7 is references to documents in other packages. For example a protocol specifications may refer to another one or to a library implementing it. This feature works with PDF, HTML, PS (and epub?) generated documents and will generate links to the other versions of the same type, i.e. html docs will link to other html docs, and pdf docs will link to other pdf docs. New: generating target databases -------------------------------- All documents will generate a target db, analogous to a symbol table which will be consulted by other documents to find linking information. This is accomplished with xsltproc. New: consulting target databases -------------------------------- While documents are being converted from xml to html/pdf/ps, they will consult the target dbs of each document they which to refer to. This is accomplished with xmlto. New: master database -------------------- A hand written database has been created which provides an association between the target dbs and the document themselves. It also reflects the hierarchical structure of the documents relative to the installation dir. New: xorg-xhtml.xsl and xorg-fo.xsl ----------------------------------- A number of motivations are behind the new (and split) versions of xorg.xsl. This module must remain backward compatible to build previous versions of documentation. It was originally designed a while ago for sgml. Given that all documents makefile had to change, it seemed a good opportunity to break from the past. Among the differences: The location of xorg.css is no longer set in the stylesheet. The chunked html is no longer supported. The html and fo parameters are kept separate. Additional parameters for external references. Now allows different values for html/fo xsl for the same parameter should that be required. The xorg-xhtml.xsl imports html/docbook.xsl The xorg-fo.xsl imports fo/docbook.xsl Co-authored-by: Matt Dew <marcoz@osource.org> Acked-by: Dan Nicholson <dbn.lists@gmail.com> Signed-off-by: Gaetan Nadon <memsize@videotron.ca>
Diffstat (limited to 'masterdb/Makefile.am')
-rw-r--r--masterdb/Makefile.am26
1 files changed, 26 insertions, 0 deletions
diff --git a/masterdb/Makefile.am b/masterdb/Makefile.am
new file mode 100644
index 0000000..b967d68
--- /dev/null
+++ b/masterdb/Makefile.am
@@ -0,0 +1,26 @@
+
+master_PRE = masterdb.xml
+sgmldbs_DATA = \
+ $(master_PRE:xml=html.xml) \
+ $(master_PRE:xml=pdf.xml) \
+ $(master_PRE:xml=ps.xml) \
+ $(master_PRE:xml=txt.xml)
+
+EXTRA_DIST = $(master_PRE)
+CLEANFILES = $(sgmldbs_DATA)
+
+%.html.xml: %.xml
+ $(AM_V_GEN)$(SED) -e 's|__ext__|html|g' \
+ -e 's|__db__|html|g' < $< > $@
+
+%.txt.xml: %.xml
+ $(AM_V_GEN)$(SED) -e 's|__ext__|txt|g' \
+ -e 's|__db__|html|g' < $< > $@
+
+%.pdf.xml: %.xml
+ $(AM_V_GEN)$(SED) -e 's|__ext__|pdf|g' \
+ -e 's|__db__|fo|g' < $< > $@
+
+%.ps.xml: %.xml
+ $(AM_V_GEN)$(SED) -e 's|__ext__|ps|g' \
+ -e 's|__db__|fo|g' < $< > $@