From: SourceForge.net <no...@so...> - 2012-10-25 17:10:07
|
Bugs item #3247166, was opened at 2011-03-26 07:42 Message generated for change (Comment added) made by mzjn You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3247166&group_id=21935 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: XSL Group: output: webhelp Status: Open Resolution: None Priority: 5 Private: No Submitted By: Anne Gentle (annegentle) Assigned to: David Cramer (dcramer) Summary: No $default.topic for redirects on the top index.html Initial Comment: The <head> output for the top-level index.html does not correctly do redirects for my project. I have a book file with xi:includes for each chapter and I use processing directives for each file name to be output. Somehow the $default.topic is not populated correctly, because I don't have a legal notice file? So this XSL: <head> <link rel="shortcut icon" href="favicon.ico"/> <meta http-equiv="Refresh" content="1; URL=content/{$default.topic}"/> <title><xsl:value-of select="//title[1]"/>  </title> </head> Results in this HTML: <head> <link rel="shortcut icon" href="favicon.ico"/> <meta http-equiv="Refresh" content="1; URL=content/"/> <title> </title> </head> ---------------------------------------------------------------------- >Comment By: Mauritz Jeanson (mzjn) Date: 2012-10-25 10:10 Message: So this one is fixed then? ---------------------------------------------------------------------- Comment By: Kasun Gajasinghe (kasunbg) Date: 2011-03-27 08:42 Message: David, Thanks for catching that. Seems I only updated meta-data tag when removing the hard-coded ch01.html. And, as I understood, that's is not the bug Anne reported though! Seems $default.topic is not set in the environment for some reason so it appears as an empty string. ie.: "content/{$default.topic}" => "content/" (you suggested the correct solution in your first comment!) I thought $default.topic behaves exactly like $htmlhelp.default.topic (http://www.sagehill.net/docbookxsl/HtmlHelp.html) where it takes the chunk generated by the root element, if the parameter is not specified! ---------------------------------------------------------------------- Comment By: David Cramer (dcramer) Date: 2011-03-27 08:10 Message: Turned out it was just a hardcoded reference to ch01.html in the text that displays if the redirect doesn't happen (say they're using noscript and it doesn't allow redirects). I've changed that to use the $default.topic value. ---------------------------------------------------------------------- Comment By: David Cramer (dcramer) Date: 2011-03-27 08:10 Message: A fix for this issue has been added to the current codebase. Please test the fix with the latest snapshot from: http://docbook.sourceforge.net/snapshots/ ---------------------------------------------------------------------- Comment By: David Cramer (dcramer) Date: 2011-03-26 07:45 Message: Looks like we'll need to add some logic in the declaration of the default.topic param so that it looks at the doc and selects the first chunk. If the user declares a specific default.topic, all that logic will be replaced with their declaration. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=3247166&group_id=21935 |