This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Example and other formal numbers in XSL-FO
- To: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Subject: Re: DOCBOOK-APPS: Example and other formal numbers in XSL-FO
- From: Jon Willeke <willeke at intersys dot com>
- Date: Mon, 02 Jul 2001 11:20:54 -0400
I reported bug 426081 [1] after investigating a similar issue. In a
previous version of the stylesheets, an xref to a figure (or example, et
al.) displayed just the label and number, with no trailing period ("Figure
1"). Subsequent versions have displayed a trailing period ("Figure 1.") or
the label ("Figure 1. Widget production").
One workaround (in 1.38) is to edit common/en.xml. You should see a line like
<template name="figure" text="Figure %n. %t"/>
Change it to
<template name="figure" text="Figure %n"/>
I don't use the FO stylesheets, so I can't tell you why they behave
differently.
_____
1.
<http://sourceforge.net/tracker/?func=detail&atid=373747&aid=426081&group_id=21935>.
At 03:50 PM 7/1/01 -0400, Elliotte Rusty Harold wrote:
>The HTML stylesheets provide captions for figures, formal examples, and
>such that look like this:
>
>Example 1.2. An XML document indicating an order for 12 Birdsong Clocks
>
>"Example 1.2." is calculated automatically by the stylesheet.
>
>However, the XSL-FO stylesheets do not provide the example and number;
>that is they label the same formal example as:
>
> An XML document indicating an order for 12 Birdsong Clocks
>
>I suspect this should be classified as a bug, especially since the xrefs
>in the XSL-FO do use the numbers. I'm trying to track this one down, but
>I'm getting lost in the interlinked templates.
>
>On a related note, I think that xrefs to figures and formal examples
>should not use the full title, just the number. For example, currently I get:
>
>For instance, Example 1.2. An XML document indicating an order for 12
>Birdsong Clocks places the Order element and all its descendants in the
>http://ns.cafeconleche.org/Orders/ namespace, event though none of them
>have prefixes.
>
>However, what I want is
>
>For instance, Example 1.2 places the Order element and all its descendants
>in the http://ns.cafeconleche.org/Orders/ namespace, event though none of
>them have prefixes.
--
Jon Willeke, Quality Engineer
InterSystems Corp.
One Memorial Drive, Cambridge, MA 02142