diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-05-12 01:09:07 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-05-12 01:09:07 +0000 |
commit | e7b899c46c23d72ea5f92187952c42f1da89f422 (patch) | |
tree | 26d879f4636dd5f36c241e58e984c776783e9ac1 /xslt/docbook/html/db2html-block.xsl | |
parent | f962388e294c54f0335e27e45310378454a49895 (diff) | |
download | gnome-doc-utils-e7b899c46c23d72ea5f92187952c42f1da89f422.tar.gz |
- Added funcsynopsis.x001.xml
* test/testdocs/README:
* test/testdocs/funcsynopsis.x001.xml:
- Added funcsynopsis.x001.xml
* xslt/docbook/common/db-chunk.xsl:
- Added db.chunk.chunk-id template stub
* xslt/docbook/common/db-common.xsl:
- Added db.xref.target template
* xslt/docbook/html/db2html-block.xsl:
- Added db2html.blockquote template, matches blockquote and epigraph
- Added db2html.pre template
- Matched caption
* xslt/docbook/html/db2html-cmdsynopsis.xsl:
- Removed all the mode stuff, because it's not needed
* xslt/docbook/html/db2html-funcsynopsis.xsl:
- Implemented most of the funcsynopsis stuff
* xslt/docbook/html/db2html-info.xsl:
- Added legalnotice support
* xslt/docbook/html/db2html-suppressed.xsl:
- Removed suppression of funcsynopsis and cmdsynopsis stuff
- Added bridgehead and legalnotice
* xslt/docbook/html/db2html-title.xsl:
- Removed xsl:element, because of #141532
* xslt/docbook/html/db2html-xref.xsl:
- Implemented link
* xslt/docbook/html/report.xslt:
- Linkified the element names to the DocBook documentation
Diffstat (limited to 'xslt/docbook/html/db2html-block.xsl')
-rw-r--r-- | xslt/docbook/html/db2html-block.xsl | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/xslt/docbook/html/db2html-block.xsl b/xslt/docbook/html/db2html-block.xsl index c776558..76ae8ba 100644 --- a/xslt/docbook/html/db2html-block.xsl +++ b/xslt/docbook/html/db2html-block.xsl @@ -48,8 +48,28 @@ </xsl:template> -<!-- == db2html.para ======================================================= --> +<!-- == db2html.blockquote ================================================= --> +<template xmlns="http://www.gnome.org/~shaunm/xsldoc"> + <name>db2html.blockquote</name> + <description> + Render a blockquote for an element + </description> +</template> + +<xsl:template name="db2html.blockquote"> + <div class="{local-name(.)}"> + <xsl:apply-templates select="title"/> + <blockquote> + <xsl:apply-templates + select="*[name(.) != 'title' and name(.) != 'attribution']"/> + </blockquote> + <xsl:apply-templates select="attribution"/> + </div> +</xsl:template> + + +<!-- == db2html.para ======================================================= --> <template xmlns="http://www.gnome.org/~shaunm/xsldoc"> <name>db2html.para</name> @@ -66,6 +86,23 @@ </xsl:template> +<!-- == db2html.pre ======================================================== --> + +<template xmlns="http://www.gnome.org/~shaunm/xsldoc"> + <name>db2html.pre</name> + <description> + Format an element in a <xmltag>pre</xmltag> tag + </description> +</template> + +<xsl:template name="db2html.pre"> + <pre class="{local-name(.)}"> + <xsl:call-template name="db2html.anchor"/> + <xsl:apply-templates/> + </pre> +</xsl:template> + + <!-- Matched Templates ===================================================== --> <!-- = abstract = --> @@ -90,6 +127,21 @@ </xsl:call-template> </xsl:template> +<!-- = blockquote = --> +<xsl:template match="blockquote"> + <xsl:call-template name="db2html.blockquote"/> +</xsl:template> + +<!-- = caption = --> +<xsl:template match="caption"> + <xsl:call-template name="db2html.block"/> +</xsl:template> + +<!-- = epigraph = --> +<xsl:template match="epigraph"> + <xsl:call-template name="db2html.blockquote"/> +</xsl:template> + <!-- = example = --> <xsl:template match="example"> <xsl:call-template name="db2html.block"/> |