diff options
author | Shaun McCance <shaunm@src.gnome.org> | 2003-10-17 03:13:01 +0000 |
---|---|---|
committer | Shaun McCance <shaunm@src.gnome.org> | 2003-10-17 03:13:01 +0000 |
commit | 658ae1aa229ba269ac69207494c331e1c5c2fed1 (patch) | |
tree | c78fa671cd664835cb57816ea6d40ea95b9d5b27 | |
parent | 123540b51a878399caf04c63bde3a3053a485e61 (diff) | |
download | yelp-658ae1aa229ba269ac69207494c331e1c5c2fed1.tar.gz |
- Fix links to titlepage
* db2html-chunk.xsl:
* db2html-xref.xsl:
- Fix links to titlepage
-rw-r--r-- | stylesheets/ChangeLog | 6 | ||||
-rw-r--r-- | stylesheets/db2html-chunk.xsl | 5 | ||||
-rw-r--r-- | stylesheets/db2html-xref.xsl | 2 |
3 files changed, 12 insertions, 1 deletions
diff --git a/stylesheets/ChangeLog b/stylesheets/ChangeLog index 2bf58bad..bb88a188 100644 --- a/stylesheets/ChangeLog +++ b/stylesheets/ChangeLog @@ -1,5 +1,11 @@ 2003-10-16 Shaun McCance <shaunm@gnome.org> + * db2html-chunk.xsl: + * db2html-xref.xsl: + - Fix links to titlepage + +2003-10-16 Shaun McCance <shaunm@gnome.org> + * db2html-titlepage.xsl: - Fix copyright so it works diff --git a/stylesheets/db2html-chunk.xsl b/stylesheets/db2html-chunk.xsl index deb5cdb5..412ddfb2 100644 --- a/stylesheets/db2html-chunk.xsl +++ b/stylesheets/db2html-chunk.xsl @@ -286,9 +286,14 @@ <xsl:template mode="chunk.id.mode" match="*"> <xsl:choose> +<!-- <xsl:when test="self::preface[@role = 'bookintro']"> <xsl:apply-templates select=".." mode="chunk.id.mode"/> </xsl:when> +--> + <xsl:when test="(&is-info;) and ($generate_titlepage) and (.. = /*)"> + <xsl:value-of select="'titlepage'"/> + </xsl:when> <xsl:when test=" (&is-division;) and (count(ancestor::*[&is-division;]) <= $chunk_depth)"> diff --git a/stylesheets/db2html-xref.xsl b/stylesheets/db2html-xref.xsl index 2f7cac97..07b68023 100644 --- a/stylesheets/db2html-xref.xsl +++ b/stylesheets/db2html-xref.xsl @@ -88,7 +88,7 @@ <xsl:apply-templates select="$target" mode="chunk.id.mode"/> </xsl:variable> <xsl:value-of select="concat($chunk_id, $html_extension)"/> - <xsl:if test="string($chunk_id) != $linkend"> + <xsl:if test="$linkend and string($chunk_id) != $linkend"> <xsl:text>#</xsl:text> <xsl:value-of select="$linkend"/> </xsl:if> |