diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2004-11-11 00:33:52 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2004-11-11 00:33:52 +0000 |
commit | 39d615036e2b9991bf0cb1b13ee28190efaf9ef9 (patch) | |
tree | bae4557fb5b6af2022038f1dbe7752850f1e7596 /xslt/docbook/html | |
parent | 9eabc764a800b8171a556c3beed170f08a2deeba (diff) | |
download | gnome-doc-utils-39d615036e2b9991bf0cb1b13ee28190efaf9ef9.tar.gz |
- Implemented preface and screeninfo
* xslt/docbook/html/db2html-division.xsl:
* xslt/docbook/html/db2html-suppressed.xsl:
- Implemented preface and screeninfo
* xslt/docbook/html/db2html.xsl:
- Nicer errors on unmatched elements
Diffstat (limited to 'xslt/docbook/html')
-rw-r--r-- | xslt/docbook/html/db2html-division.xsl | 18 | ||||
-rw-r--r-- | xslt/docbook/html/db2html-suppressed.xsl | 3 | ||||
-rw-r--r-- | xslt/docbook/html/db2html.xsl | 13 |
3 files changed, 26 insertions, 8 deletions
diff --git a/xslt/docbook/html/db2html-division.xsl b/xslt/docbook/html/db2html-division.xsl index f159b5d..c092156 100644 --- a/xslt/docbook/html/db2html-division.xsl +++ b/xslt/docbook/html/db2html-division.xsl @@ -326,6 +326,24 @@ </xsl:call-template> </xsl:template> +<!-- = preface = --> +<xsl:template match="preface"> + <xsl:param name="depth_in_chunk"> + <xsl:call-template name="db.chunk.depth-in-chunk"/> + </xsl:param> + <xsl:param name="depth_of_chunk"> + <xsl:call-template name="db.chunk.depth-of-chunk"/> + </xsl:param> + <xsl:call-template name="db2html.division.content"> + <xsl:with-param name="divisions" select=" + refentry | simplesect | sect1 | section | toc | + lot | index | glossary | bibliography "/> + <xsl:with-param name="info" select="prefaceinfo"/> + <xsl:with-param name="depth_in_chunk" select="$depth_in_chunk"/> + <xsl:with-param name="depth_of_chunk" select="$depth_of_chunk"/> + </xsl:call-template> +</xsl:template> + <!-- = sect1 = --> <xsl:template match="sect1"> <xsl:param name="depth_in_chunk"> diff --git a/xslt/docbook/html/db2html-suppressed.xsl b/xslt/docbook/html/db2html-suppressed.xsl index 81f5c56..6188047 100644 --- a/xslt/docbook/html/db2html-suppressed.xsl +++ b/xslt/docbook/html/db2html-suppressed.xsl @@ -10,6 +10,9 @@ supported, while other elements are expected only to be processed in certain modes because of the DocBook content model. --> +<!-- Suppressed by processing expectations --> +<xsl:template match="screeninfo"/> + <!-- Not supported --> <xsl:template match="alt"/> <xsl:template match="beginpage"/> diff --git a/xslt/docbook/html/db2html.xsl b/xslt/docbook/html/db2html.xsl index 2f0f79d..a11f128 100644 --- a/xslt/docbook/html/db2html.xsl +++ b/xslt/docbook/html/db2html.xsl @@ -78,14 +78,11 @@ <!-- Just for now, to see the crap --> <xsl:template match="*"> - <div> - <span style="color: #CC3333;"> - <xsl:text>FIXME: </xsl:text> - <xsl:value-of select="local-name(.)"/> - <xsl:text> </xsl:text> - </span> - <xsl:apply-templates/> - </div> + <xsl:message> + <xsl:text>Unmatched element: </xsl:text> + <xsl:value-of select="local-name(.)"/> + </xsl:message> + <xsl:apply-templates select="node()"/> </xsl:template> <!-- Implement the stub templates from db-chunk --> |