> ...is for conditional processing... <title> accepts <phrase>s which can be made conditional. That's the way I did it.
Best regards Michael -----Original Message----- From: [email protected] [mailto:[email protected]] Sent: Donnerstag, 20. Januar 2011 01:30 To: [email protected] Subject: [docbook] RE: several title-elements on the titlepage (Moving this to "docbook" because my response is more about the language definition here.) One reason for being able to specify multiple <title> elements (or indeed multiple elements of any type where currently only 1 is allowed) is for conditional processing. You might use an attribute to conditionally exclude one or the other in different circumstances. > -----Original Message----- > From: Bob Stayton [mailto:[email protected]] > Sent: Wednesday, January 19, 2011 1:34 PM > To: Lwam Berhane; [email protected] > 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 > [email protected] > > > ----- Original Message ----- > From: "Lwam Berhane" <[email protected]> > To: <[email protected]> > 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 [email protected] http://punkt.de/ > AG Mannheim 108285 Gf: Jürgen Egeling > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: > [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
