Hi,
I am not able to duplicate this problem. First, it seems you included the
label attributes by accident in your sample. When those are included, they
override completely the generated label number.
When I remove those attributes, I get just a single dot in the appendix
figure title. Were you testing with the stock DocBook XSL stylesheets or a
customization layer? If the latter, please test with the stock stylesheets
to determine if it is your customization layer that adds the two dots.
The two dots should be coming from a template in
mode="intralabel.punctuation", which is in common/labels.xsl. You don't see
that template expressed it in your chapter because it seems you don't number
your chapters, so the figures have only a single number without the chapter
number prefix, so there is no intralabel punctuation.
Bob Stayton
Sagehill Enterprises
----- Original Message -----
From: "Juri Memmert" <>
To: <>
Sent: Saturday, February 21, 2009 2:25 AM
Subject: [docbook-apps] Title incorrect for figures in appendix
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: RIPEMD160
>
> Hi,
>
> I just found an interesting little problem which I have no clue how to
> resolve. I'm using Docbook 5 with namespaces, Saxon 6.5.5 and FOP 0.95.
> I tested this with all release versions from 1.72.0 to 1.74.3, with the
> same result.
>
> I have a figure:
>
> <d:figure label="Hello">
> <d:info>
> <d:title>Hello</d:title>
> </d:info>
> </d:figure>
>
> If I add that figure to a section, everything is fine and this is the FO
> output:
>
> <fo:block space-before.optimum="1em"
> space-before.minimum="0.8em"
> space-before.maximum="1.2em"
> font-weight="bold" font-size="12pt"
> hyphenate="false"
> space-after.minimum="0.4em"
> space-after.optimum="0.6em"
> space-after.maximum="0.8em"
> keep-with-next.within-column="always">
> Figure 10. Hello
> </fo:block>
>
>
> But if I add it to the appendix, the FO output presents the figure as
>
> <fo:block space-before.optimum="1em"
> space-before.minimum="0.8em"
> space-before.maximum="1.2em"
> font-weight="bold" font-size="12pt"
> hyphenate="false"
> space-after.minimum="0.4em"
> space-after.optimum="0.6em"
> space-after.maximum="0.8em"
> keep-with-next.within-column="always">
> Figure A..4. Hello
> </fo:block>
>
> Notice the ".." between the "A" and the "4" in there?
> Everything else is the same, but there is one "." too many when you add
> the figure to the appendix.
> And I have no clue why and I don't think it should be there.
>
> I checked the bug database and found nothing that seemed related
> (probably just didn't put in the right keywords).
>
> Fixing it should be fairly simple... once I know where to look (or so I
> hope).
> I tried debugging the stylesheets, but that's even more cumbersome than
> I thought and so I didn't get too far on that.
>
> If someone could point me in the right direction, I'm more than happy to
> plod along and try to resolve this (and yes, if I find it, I'll send in
> a patch if I succeed).
>
>
> With kind regards,
>
> Juri Memmert
>
> - --
> No bird soars too high if he soars with his own wings.
> -- William Blake
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEAREDAAYFAkmf1pwACgkQeKE9NrxdrXzj2ACcCkl4zigYXuptT/dfnBdxqL1y
> 714An29HMiCHWYHtN2Qvmq2/cLzUEKPY
> =3bCP
> -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:
>
>
>