This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: FO output: author in simpara, entry and term
- From: Bob Stayton <bobs at caldera dot com>
- To: abx at abx dot art dot pl, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 13 Dec 2002 10:18:22 -0800
- Subject: Re: DOCBOOK-APPS: FO output: author in simpara, entry and term
- References: <f56jvusqatnbjkfn8hklmmvmk80t45c0cu@4ax.com>
On Fri, Dec 13, 2002 at 09:28:21AM +0100, ABX wrote:
> When I used <author> in some allowed (according to 4.2 DTD) parents I got
> errors during rendering to FO with either xsltproc and instant saxon. I have
> fixed this adding to my customization layer following sequence:
>
> <xsl:template match="simpara/author">
> <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="entry/author">
> <xsl:apply-templates/>
> </xsl:template>
>
> <xsl:template match="term/author">
> <xsl:apply-templates/>
> </xsl:template>
>
> Did I it correctly ? Is this intentional hole or just ommision ? In case of
> HTML rendering there is nothing wrong.
This was an omission from the FO stylesheets.
I checked in changes so that it works in a manner
similar to the HTML stylesheets. It will be in the
next distribution. In the mean time, you can use this:
<xsl:template match="author">
<xsl:call-template name="person.name"/>
</xsl:template>
This puts together the person's name from the
subelements.
--
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