From b6eb32f41becc5550c1f512ea7635de786d7ac3b Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Mon, 1 Jun 2009 02:58:51 -0500 Subject: Build and stylesheet changes prepping for Yelp work --- configure.in | 1 - doc/Makefile.am | 2 +- doc/mallard/C/mal_info.xml | 17 ++++---- sandbox/mallard/html/Makefile | 14 +++++- tools/gnome-doc-utils.pc.in | 2 + xslt/docbook/html/db2xhtml.xsl | 2 +- xslt/mallard/common/Makefile.am | 2 +- xslt/mallard/common/mal-chunk.xsl | 85 +++++++++++++++++++++++++++++++++++++ xslt/mallard/common/mal-link.xsl | 4 +- xslt/mallard/html/mal2html-page.xsl | 26 +++++++++--- xslt/mallard/html/mal2html.xsl | 11 ++++- xslt/mallard/html/mal2xhtml.xsl | 16 ++++++- 12 files changed, 159 insertions(+), 23 deletions(-) create mode 100644 xslt/mallard/common/mal-chunk.xsl diff --git a/configure.in b/configure.in index 76ff019..35b4381 100644 --- a/configure.in +++ b/configure.in @@ -55,7 +55,6 @@ data/templates/Makefile data/watermarks/Makefile doc/Makefile doc/gnome-doc-make/Makefile -doc/mallard/Makefile doc/xslt/Makefile po/Makefile.in rng/Makefile diff --git a/doc/Makefile.am b/doc/Makefile.am index bd60514..8ab2702 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -1 +1 @@ -SUBDIRS = gnome-doc-make mallard xslt +SUBDIRS = gnome-doc-make xslt #mallard diff --git a/doc/mallard/C/mal_info.xml b/doc/mallard/C/mal_info.xml index 7251eb5..adb20c4 100644 --- a/doc/mallard/C/mal_info.xml +++ b/doc/mallard/C/mal_info.xml @@ -14,14 +14,15 @@ mal_info = element info { attribute * - (mal:* | local:*) { text } *, - element * - (mal:* | local:*) { mal_inline } * -& mal_info_desc ? -& mal_info_credit * -& mal_info_copyright * -& mal_info_license * -& mal_info_link * -& mal_info_title * -& mal_info_revision * + ( element * - (mal:* | local:*) { mal_inline } * + & mal_info_desc ? + & mal_info_credit * + & mal_info_copyright * + & mal_info_license * + & mal_info_link * + & mal_info_title * + & mal_info_revision * + ) } - diff --git a/xslt/mallard/common/Makefile.am b/xslt/mallard/common/Makefile.am index 9c808fc..9501408 100644 --- a/xslt/mallard/common/Makefile.am +++ b/xslt/mallard/common/Makefile.am @@ -1,5 +1,5 @@ xsldir=$(datadir)/xml/gnome/xslt/mallard/common -xsl_DATA = mal-link.xsl +xsl_DATA = mal-chunk.xsl mal-link.xsl EXTRA_DIST=$(xsl_DATA) diff --git a/xslt/mallard/common/mal-chunk.xsl b/xslt/mallard/common/mal-chunk.xsl new file mode 100644 index 0000000..72531c3 --- /dev/null +++ b/xslt/mallard/common/mal-chunk.xsl @@ -0,0 +1,85 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/xslt/mallard/common/mal-link.xsl b/xslt/mallard/common/mal-link.xsl index de5817d..fd00a77 100644 --- a/xslt/mallard/common/mal-link.xsl +++ b/xslt/mallard/common/mal-link.xsl @@ -127,12 +127,12 @@ $href: The #{href} attribute of ${link} - + - + diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl index 01be58a..cc96415 100644 --- a/xslt/mallard/html/mal2html-page.xsl +++ b/xslt/mallard/html/mal2html-page.xsl @@ -465,9 +465,23 @@ REMARK: Describe this template + + + + + + + + + + + + + + - + @@ -475,17 +489,17 @@ REMARK: Describe this template + select="mal:info/mal:revision[@date = $date][last()]"/> - <xsl:value-of select="mal:page/mal:title"/> + <xsl:value-of select="mal:title"/> - +
@@ -519,10 +533,10 @@ REMARK: Describe this template
- + - + diff --git a/xslt/mallard/html/mal2html.xsl b/xslt/mallard/html/mal2html.xsl index 441c57b..6a4e5de 100644 --- a/xslt/mallard/html/mal2html.xsl +++ b/xslt/mallard/html/mal2html.xsl @@ -22,6 +22,14 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA exclude-result-prefixes="mal" version="1.0"> + + + + + + + + @@ -30,7 +38,7 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA - + + diff --git a/xslt/mallard/html/mal2xhtml.xsl b/xslt/mallard/html/mal2xhtml.xsl index df7a07d..2f556e7 100644 --- a/xslt/mallard/html/mal2xhtml.xsl +++ b/xslt/mallard/html/mal2xhtml.xsl @@ -22,10 +22,23 @@ Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA exclude-result-prefixes="mal" version="1.0"> + + + + + + + + + + + - + + -- cgit v1.2.1