From: SourceForge.net <no...@so...> - 2004-09-29 09:49:27
|
Patches item #1035652, was opened at 2004-09-27 18:49 Message generated for change (Settings changed) made by techtonik You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373749&aid=1035652&group_id=21935 Category: DocBook XSL Group: None >Status: Deleted Resolution: None Priority: 5 Submitted By: anatoly techtonik (techtonik) Assigned to: Nobody/Anonymous (nobody) Summary: Chunk navigation customization Initial Comment: Sometimes it is necessary to provide additional chunk for some elements like legalnotice and include navigational info in chunk to allow user return back. These elements may not have direct ascendants with chunk generated, so compiler will issue a warning like: No template for "/book/bookinfo" (or any of its leaves) exists in the context named "title" in the "en" localization. In current 1.66.1 stylesheet you will need to redefine footer.navigation, header.navigation, html.head and also chunk-element-content to make it possible to explicitly set attributes for such pages or make them static html. This navigational information for "up" links can be supplied together with "prev" and "next" parameters. ---------------------------------- --- D:\phpdoc\xsl\db\html\chunk-common.xsl.old Fri Aug 13 10:26:04 2004 +++ D:\phpdoc\xsl\db\html\chunk-common.xsl Mon Sep 27 21:47:04 2004 @@ -561,9 +561,9 @@ <xsl:template name="html.head"> <xsl:param name="prev" select="/foo"/> <xsl:param name="next" select="/foo"/> + <xsl:param name="up" select="parent::*"/> <xsl:variable name="this" select="."/> <xsl:variable name="home" select="/*[1]"/> - <xsl:variable name="up" select="parent::*"/> <head> <xsl:call-template name="system.head.content"/> @@ -694,10 +694,10 @@ <xsl:template name="header.navigation"> <xsl:param name="prev" select="/foo"/> <xsl:param name="next" select="/foo"/> + <xsl:param name="up" select="parent::*"/> <xsl:param name="nav.context"/> <xsl:variable name="home" select="/*[1]"/> - <xsl:variable name="up" select="parent::*"/> <xsl:variable name="row1" select="$navig.showtitles != 0"/> <xsl:variable name="row2" select="count($prev) > 0 @@ -776,10 +776,10 @@ <xsl:template name="footer.navigation"> <xsl:param name="prev" select="/foo"/> <xsl:param name="next" select="/foo"/> + <xsl:param name="up" select="parent::*"/> <xsl:param name="nav.context"/> <xsl:variable name="home" select="/*[1]"/> - <xsl:variable name="up" select="parent::*"/> <xsl:variable name="row1" select="count($prev) > 0 or count($up) > 0 @@ -962,6 +962,7 @@ <xsl:template name="chunk-element-content"> <xsl:param name="prev"/> <xsl:param name="next"/> + <xsl:param name="up"/> <xsl:param name="nav.context"/> <xsl:param name="content"> <xsl:apply-imports/> @@ -973,6 +974,7 @@ <xsl:call-template name="html.head"> <xsl:with-param name="prev" select="$prev"/> <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="up" select="$up"/> </xsl:call-template> <body> @@ -982,7 +984,8 @@ <xsl:call-template name="header.navigation"> <xsl:with-param name="prev" select="$prev"/> <xsl:with-param name="next" select="$next"/> - <xsl:with-param name="nav.context" select="$nav. context"/> + <xsl:with-param name="up" select="$up"/> + <xsl:with-param name="nav.context" select="$nav. context"/> </xsl:call-template> <xsl:call-template name="user.header.content"/> @@ -994,6 +997,7 @@ <xsl:call-template name="footer.navigation"> <xsl:with-param name="prev" select="$prev"/> <xsl:with-param name="next" select="$next"/> + <xsl:with-param name="up" select="$up"/> <xsl:with-param name="nav.context" select="$nav. context"/> </xsl:call-template> ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373749&aid=1035652&group_id=21935 |