This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
[Fwd: Re: [docbook-apps] othercredit + contrib works in HTML, notin FO]
- From: David Bridgeland <bridgeland at yahoo dot com>
- To: docbook-apps at lists dot oasis-open dot org
- Date: Sat, 29 Mar 2003 16:11:36 -0500
- 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 at sco dot com>
To: David Bridgeland <bridgeland at yahoo dot com>
CC: docbook-apps at lists dot oasis-open dot org
References: <3E82694F dot 1010000 at yahoo dot 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 at sco dot com
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-apps-unsubscribe at lists dot oasis-open dot org
For additional commands, e-mail: docbook-apps-help at lists dot oasis-open dot org