[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [Fwd: Re: [docbook-apps] othercredit + contrib works in HTML, notin FO]
Bob's reply was the day after the auto-unsubscribe fiasco. Now that everyone is back, does anyone (e.g. Norm?) understand why the fo/titlepage.xsl template does this? Is this a bug or a feature? Dave -------- Original Message -------- Subject: Re: [docbook-apps] othercredit + contrib works in HTML, not in FO Date: Wed, 26 Mar 2003 21:59:00 -0800 From: Bob Stayton <bobs@sco.com> To: David Bridgeland <bridgeland@yahoo.com> CC: docbook-apps@lists.oasis-open.org References: <3E82694F.1010000@yahoo.com> On Wed, Mar 26, 2003 at 10:00:31PM -0500, David Bridgeland wrote: > I have an authorgroup with an author and an othercredit: > > <book status="draft"> > <bookinfo> > <title>Something</title> > <authorgroup> > <author> > <firstname>Big</firstname> > <surname>Cheese</surname> > <othername role="mi">M</othername> > </author> > <othercredit> > <firstname>Little</firstname> > <surname>Guy</surname> > <contrib>with contributions from</contrib> > </othercredit> > </authorgroup> > > Translating to HTML, I get what I want: > > > Big M Cheese > > with contributions from:Little Guy > > But translated to FO, I end up with > > by Big M Cheese and Little Guy > > The relevant parts of the both titlepage.xsl look very similar with some > minor differences, and it looks like the FO version wants to do the same > thing as the HTML version. But it doesn't. Is there a bug in the FO XSL? > > Versions: I am using docbook-xsl-1.60.1 to create FO and HTML, and > fop-0.20-5rc2 to create PDF. Although the latter is not relevant as > there is no sign of a "with contributions from" in the fo itself. The template you are running into is in fo/titlepage.xsl that starts with: <xsl:template match="bookinfo/authorgroup" mode="titlepage.mode" priority="2"> which calls template 'person.name.list', which just processes the names found within authorgroup. This template is more specific than the match="authorgroup" so it takes precedence. I'm not sure why both are in there. There are some additional comments in the file that indicate some purpose, but it wasn't clear to me. Perhaps Norm can clarify the purpose of these templates. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]