[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] several title-elements on the titlepage
Hi, There is only supposed to be one title element per element. In DocBook 4, more than one title element is permitted in bookinfo, but that was not the intention. The syntax of DTDs makes it hard to constrain a collection of elements that can appear in any order to have only one instance of title. In DocBook 5, only one title is permitted, and that is because the RelaxNG syntax supports such constraints. So the XSL stylesheets don't support more than one title. Getting them to work with more than one title is tricky, because title is normally processed using a gentext template from the locale file (such as en.xml), where the template is filled in by selecting the element's title. There is no provision for handling more than one title in that machinery. You would have to bypass a lot of it to process the titles directly. If you must do that, then look at modifying the template named 'division.title' in fo/division.xsl. That handles the title for a book element. You would need to replace this line: <xsl:apply-templates select="$node" mode="object.title.markup"/> with <xsl:apply-templates select="." mode="title.markup"/> This changes the mode from "object.title.markup" that uses the gentext template to just "title.markup" that processes the title directly. It also replaces select="$node" (where $node is set to the book element) to select="." (where . is the title element). That should work, but I'm not sure if there might be unintended side effects. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Lwam Berhane" <berhane@punkt.de> To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, January 19, 2011 2:19 AM Subject: [docbook-apps] several title-elements on the titlepage Hey guys! Is ist possible to have more than one title-element on the titlepage? I tried it, but in it only outputs the first title-element and repeats that one as often as I used the title-element. Did somebody experienced sth. like this? Regrads Lwam -- Gruß Lwam Berhane punkt.de GmbH TYPO3-Internet-Dienstleistungen-Beratung Kaiserallee 13a Tel.: 0721 9109-0 Fax: -100 76133 Karlsruhe info@punkt.de http://punkt.de/ AG Mannheim 108285 Gf: Jürgen Egeling --------------------------------------------------------------------- To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]