summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShaun McCance <shaunm@src.gnome.org>2004-04-06 05:24:26 +0000
committerShaun McCance <shaunm@src.gnome.org>2004-04-06 05:24:26 +0000
commita2ce6e7f1c93c19903cab90b30e80ed02ec5ff40 (patch)
tree132e329a6eaafefb5fe784ff0c68a88e127e0df1
parent996c43b1997ee57c2002f94c9762f7c37a6d2506 (diff)
downloadgnome-doc-utils-a2ce6e7f1c93c19903cab90b30e80ed02ec5ff40.tar.gz
- Adding new XSLT files
* xslt/docbook/html/Makefile.am: * xslt/docbook/html/db2html-funcsynopsis.xsl: * xslt/docbook/html/db2html-suppressed.xsl: - Adding new XSLT files * */.cvsignore: - Some .cvsignore updates
-rw-r--r--ChangeLog10
-rw-r--r--sandbox/mallard/.cvsignore1
-rw-r--r--sandbox/mallard/doc/mallard/.cvsignore2
-rw-r--r--sandbox/mallard/doc/mallard/C/.cvsignore11
-rw-r--r--test/testdoc1/.cvsignore2
-rw-r--r--xslt/docbook/html/.cvsignore2
-rw-r--r--xslt/docbook/html/Makefile.am12
-rw-r--r--xslt/docbook/html/db2html-funcsynopsis.xsl75
-rw-r--r--xslt/docbook/html/db2html-suppressed.xsl16
-rw-r--r--xslt/docbook/omf/.cvsignore2
10 files changed, 127 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index 2e65bc5..795e8e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2004-04-06 Shaun McCance <shaunm@gnome.org>
+
+ * xslt/docbook/html/Makefile.am:
+ * xslt/docbook/html/db2html-funcsynopsis.xsl:
+ * xslt/docbook/html/db2html-suppressed.xsl:
+ - Adding new XSLT files
+
+ * */.cvsignore:
+ - Some .cvsignore updates
+
2004-04-05 Shaun McCance <shaunm@gnome.org>
* doc/xslt/gnome-doc-xslt.desktop.in
diff --git a/sandbox/mallard/.cvsignore b/sandbox/mallard/.cvsignore
index b0a934f..40e026f 100644
--- a/sandbox/mallard/.cvsignore
+++ b/sandbox/mallard/.cvsignore
@@ -6,3 +6,4 @@ changes
config.log
config.status
configure
+gnome-doc-utils.make
diff --git a/sandbox/mallard/doc/mallard/.cvsignore b/sandbox/mallard/doc/mallard/.cvsignore
new file mode 100644
index 0000000..282522d
--- /dev/null
+++ b/sandbox/mallard/doc/mallard/.cvsignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in
diff --git a/sandbox/mallard/doc/mallard/C/.cvsignore b/sandbox/mallard/doc/mallard/C/.cvsignore
new file mode 100644
index 0000000..650fa11
--- /dev/null
+++ b/sandbox/mallard/doc/mallard/C/.cvsignore
@@ -0,0 +1,11 @@
+db-admon.xml
+db-callout.xml
+db-cmdsynopsis.xml
+db-comp.xml
+db-credits.xml
+db-list.xml
+db-media.xml
+db-para.xml
+db-section.xml
+db-title.xml
+mallard.omf
diff --git a/test/testdoc1/.cvsignore b/test/testdoc1/.cvsignore
index b0a4030..c2c63cf 100644
--- a/test/testdoc1/.cvsignore
+++ b/test/testdoc1/.cvsignore
@@ -5,4 +5,4 @@ autom4te.cache
config.log
config.status
configure
-gnome-doc-docbook-rule.make
+gnome-doc-utils.make
diff --git a/xslt/docbook/html/.cvsignore b/xslt/docbook/html/.cvsignore
index 282522d..c6b313f 100644
--- a/xslt/docbook/html/.cvsignore
+++ b/xslt/docbook/html/.cvsignore
@@ -1,2 +1,4 @@
Makefile
Makefile.in
+report.html
+report.xml
diff --git a/xslt/docbook/html/Makefile.am b/xslt/docbook/html/Makefile.am
index b476c17..2e5cbb2 100644
--- a/xslt/docbook/html/Makefile.am
+++ b/xslt/docbook/html/Makefile.am
@@ -1,10 +1,12 @@
xsldir=$(datadir)/sgml/gnome/docbook/html
-xsl_DATA = \
- db2html-admon.xsl \
- db2html-cmdsynopsis.xsl \
- db2html-inline.xsl \
- db2html-label.xsl \
+xsl_DATA = \
+ db2html-admon.xsl \
+ db2html-cmdsynopsis.xsl \
+ db2html-funcsynopsis.xsl \
+ db2html-inline.xsl \
+ db2html-label.xsl \
+ db2html-suppressed.xsl \
db2html-title.xsl
EXTRA_DIST=$(xsl_DATA)
diff --git a/xslt/docbook/html/db2html-funcsynopsis.xsl b/xslt/docbook/html/db2html-funcsynopsis.xsl
new file mode 100644
index 0000000..28aed56
--- /dev/null
+++ b/xslt/docbook/html/db2html-funcsynopsis.xsl
@@ -0,0 +1,75 @@
+<?xml version='1.0'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:ref="http://www.gnome.org/~shaunm/mallard/reference"
+ exclude-result-prefixes="ref"
+ version="1.0">
+
+<ref:title>Function Synopses</ref:title>
+
+
+<!-- == db2html.funcsynopsis.style == -->
+
+<ref:refname>db2html.funcsynopsis.style</ref:refname>
+<ref:refpurpose>
+ How to render <ref:xmltag>funcsynopsis</ref:xmltag> elements,
+ either <ref:constant>'K&amp;R'</ref:constant> or
+ <ref:constant>'ANSI'</ref:constant>
+</ref:refpurpose>
+
+<xsl:param name="db2html.funcsynopsis.style">
+ <xsl:choose>
+ <xsl:when test="processing-instruction('db2html.funcsynopsis.style')">
+ <xsl:value-of
+ select="processing-instruction('db2html.funcsynopsis.style')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="'ANSI'"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:param>
+
+
+<!-- == db2html.funcsynopsis == -->
+
+<ref:refname>db2html.funcsynopsis</ref:refname>
+<ref:refpurpose>
+ Process <ref:xmltag>funcsynopsis</ref:xmltag> elements
+</ref:refpurpose>
+
+<xsl:template name="db2html.funcsynopsis">
+ <xsl:param name="style">
+ <xsl:choose>
+ <xsl:when test="processing-instruction('db2html.funcsynopsis.style')">
+ <xsl:value-of
+ select="processing-instruction('db2html.funcsynopsis.style')"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$db2html.funcsynopsis.style"/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:param>
+ <div class="funcsynopsis">
+ <xsl:call-template name="db2html.anchor"/>
+ <xsl:apply-templates mode="db2html.funcsynopsis.mode">
+ <xsl:with-param name="style" select="$style"/>
+ </xsl:apply-templates>
+ </div>
+</xsl:template>
+
+
+<!-- == Matched Templates == -->
+
+<!-- = funcsynopsis = -->
+<xsl:template match="funcsynopsis">
+ <xsl:call-template name="db2html.funcsynopsis"/>
+</xsl:template>
+
+<!-- = db2html.funcsynopsis.mode == funcsynopsisinfo = -->
+<xsl:template mode="db2html.funcsynopsis.mode" match="funcsynopsisinfo">
+ <pre class="funcsynopsisinfo">
+ <xsl:apply-templates/>
+ </pre>
+</xsl:template>
+
+</xsl:stylesheet>
diff --git a/xslt/docbook/html/db2html-suppressed.xsl b/xslt/docbook/html/db2html-suppressed.xsl
new file mode 100644
index 0000000..142d4db
--- /dev/null
+++ b/xslt/docbook/html/db2html-suppressed.xsl
@@ -0,0 +1,16 @@
+<?xml version='1.0'?>
+
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<!--
+If you add a template to this stylesheet, put it under an appropriate header
+that states why this element is suppressed. Some elements are simply not
+supported, while other elements are expected only to be processed in certain
+modes because of the DocBook content model.
+-->
+
+<!-- Only occurs in db2html.funcsynopsis.mode -->
+<xsl:template match="funcsynopsisinfo"/>
+
+</xsl:stylesheet>
diff --git a/xslt/docbook/omf/.cvsignore b/xslt/docbook/omf/.cvsignore
new file mode 100644
index 0000000..282522d
--- /dev/null
+++ b/xslt/docbook/omf/.cvsignore
@@ -0,0 +1,2 @@
+Makefile
+Makefile.in