From: SourceForge.net <no...@so...> - 2009-04-03 02:20:16
|
Bugs item #2124296, was opened at 2008-09-23 10:01 Message generated for change (Comment added) made by sf-robot You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2124296&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: print/FO/PDF >Status: Closed Resolution: Fixed Priority: 5 Private: No Submitted By: Hussein Shafie (h_shafie) Assigned to: Robert Stayton (bobstayton) Summary: With DocBook 5, book title templates apply also to articles Initial Comment: In fo/titlepage.xsl. A lot of templates match d:bookinfo/d:XXX|d:info/d:XXX (e.g. d:bookinfo/d:author|d:info/d:author). This means that, in the case of DocBook 5, these templates will apply to articles as well as to books, which does not seem to be the intended effect. I would suggest to replace d:bookinfo/d:XXX|d:info/d:XXX by d:bookinfo/d:XXX|d:book/d:info/d:XXX everywhere in titlepage.xsl. ---------------------------------------------------------------------- >Comment By: SourceForge Robot (sf-robot) Date: 2009-04-03 02:20 Message: This Tracker item was closed automatically by the system. It was previously set to a Pending status, and the original submitter did not respond within 14 days (the time period specified by the administrator of this Tracker). ---------------------------------------------------------------------- Comment By: Hussein Shafie (h_shafie) Date: 2009-03-16 10:24 Message: Thank you very much! ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2009-03-16 07:09 Message: Further investigation shows that your are correct that these templates are specific to book, and so they should be updated to distinguish the match to only apply to book. There are other generic templates for other parent elements like article. I fixed the instances for book/info in fo/titlepage.xsl. ---------------------------------------------------------------------- Comment By: Robert Stayton (bobstayton) Date: 2009-03-16 07:09 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: Robert Stayton (bobstayton) Date: 2009-03-11 04:00 Message: Actually, this setup is intentional. The templates in titlepage.xsl are the generic ones used when there is not a more specific match. They exist to make sure all titlepage elements in all contexts have at least one template. The differentiation between author in an article and author in a book takes place in titlepage.templates.xsl. In there are modes for each kind of titlepage that match on elements specific to each container element. Many of them eventually fall back to the templates in titlepage.xsl because nothing more specific has been declared. But a customization layer can customize very specifically as needed by selecting the right templates. The templates in titlepage.templates.xsl can can also be customized using the titlepage specifications mechanism that Norm Walsh created. Documentation on that process can be found here: http://www.sagehill.net/docbookxsl/HTMLTitlePage.html If you have further comments, contact me directly or post another comment here. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=373747&aid=2124296&group_id=21935 |