diff options
-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> |