From ce594bba4eb9ea277d5039431d0803365f593578 Mon Sep 17 00:00:00 2001 From: dhilvert Date: Fri, 29 Sep 2006 02:22:00 +0000 Subject: [PATCH] doc/: use a stylesheet to generate document meta-information, including author, title, copyright, package name, and package version. darcs-hash:20060929022238-789c2-96c2f3a8322e31c1f71eccce1623b10c5a77a999.gz --- doc/Makefile | 8 +- doc/ale-doc.xsl | 211 +++++++++++++++++++++++++++++++++++++++++++++ doc/index.xml | 11 +-- doc/package/index.xml | 4 - doc/package/todo/index.xml | 6 +- doc/technical/index.xml | 4 - doc/tutorial/index.xml | 4 - doc/user/index.xml | 4 - 8 files changed, 224 insertions(+), 28 deletions(-) create mode 100644 doc/ale-doc.xsl diff --git a/doc/Makefile b/doc/Makefile index b1edd19..37e0663 100644 --- a/doc/Makefile +++ b/doc/Makefile @@ -171,7 +171,7 @@ MAN_PARAMS = DBX_PARAMS= # What file extension do you use for DocBook source files? -DOCBOOK_FILE_EXTENSION = .xml +DOCBOOK_FILE_EXTENSION = .docbook # ----------------------------------------------------------------- # make(1) functions for building file lists @@ -402,6 +402,12 @@ debug: @echo $(DIRS_MAN) # ----------------------------------------------------------------- +# preprocess xml to docbook. +# ----------------------------------------------------------------- +%$(DOCBOOK_FILE_EXTENSION): %.xml ale-doc.xsl + $(XSLT) $(XSLT_FLAGS) ale-doc.xsl $< > $@ + +# ----------------------------------------------------------------- # pattern rule for making (X)HTML and plain-text output # ----------------------------------------------------------------- %.html: %$(DOCBOOK_FILE_EXTENSION) diff --git a/doc/ale-doc.xsl b/doc/ale-doc.xsl new file mode 100644 index 0000000..82ae119 --- /dev/null +++ b/doc/ale-doc.xsl @@ -0,0 +1,211 @@ + + + + - + - + - + - The first form is preferred for occasional edits; the latter two + - are provided as shorthand for edits occurring over a number of + - days in succesion, or for cases where the exact date of the edit + - is not known (e.g., when basing edit history on copyright notices + - from older files). + --> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +]> + + + + + + + + + + + + 2002, 2003, 2004, 2005, 2006 + David Hilvert + + + + + + + + + + + + + + + + + + + + + + + + + <xsl:copy-of select="$product-name"/> + <xsl:text> </xsl:text> + <xsl:copy-of select="$product-number"/> + <xsl:text> </xsl:text> + <xsl:apply-templates/> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/doc/index.xml b/doc/index.xml index a6f1373..70c2608 100644 --- a/doc/index.xml +++ b/doc/index.xml @@ -1,17 +1,10 @@ - - - - <xi:include href="package-info.xml" xpointer="product-name"/> - <xi:include href="package-info.xml" xpointer="product-number"/> - Manuals - - - + Manuals diff --git a/doc/package/index.xml b/doc/package/index.xml index 6432d3f..2c7bdd4 100644 --- a/doc/package/index.xml +++ b/doc/package/index.xml @@ -6,12 +6,8 @@ - <xi:include href="../package-info.xml" xpointer="product-name"/> - <xi:include href="../package-info.xml" xpointer="product-number"/> Package Manual - -