OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: [patch] fo:marker fix

On Fri, Oct 18, 2002 at 08:31:20AM +0100, Tim Waugh wrote:
> I needed this patch to get passivetex (1.21) to accept the output from
> the XSL stylesheets.  Is it correct, or a hack?
> Thanks,
> Tim.
> */
> --- docbook-xsl-1.56.1/fo/sections.xsl.marker	2002-10-16 16:24:19.000000000 +0100
> +++ docbook-xsl-1.56.1/fo/sections.xsl	2002-10-16 16:24:20.000000000 +0100
> @@ -358,7 +358,7 @@
>    <fo:block xsl:use-attribute-sets="section.title.properties">
>      <fo:marker marker-class-name="section.head.marker">
> -      <xsl:copy-of select="$title"/>
> +      <xsl:value-of select="$title"/>
>      </fo:marker>
>      <xsl:choose>
>        <xsl:when test="$level=1">

Well, it is a bit of a hack.  The $title variable contains
a temporary result tree of the title with templates
applied, which could include any <fo:inline> markup for
italics, superscript, etc.  The difference is that
xsl:value-of gives you just the text, while xsl:copy-of
will give you text with inline formatting.

The <fo:marker> is used for running heads, and I doubt if
people in general would want to lose the inline markup when
the title is rendered in the running head.  Apparently
PassiveTeX has a problem with the inline markup within an
fo:marker.  I would consider that a PassiveTeX bug,
and so wouldn't apply the patch to the source.

But you gotta do what you gotta do to get output, right?


Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
Caldera International, Inc.                 fax:   (831) 429-1887
                                            email: bobs@caldera.com

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC