Hi Stefan,
It's a bug. However, it is unlikely to be encountered.
As the templates point out, questions and answers do not allow title
elements. So the regular templates do not process those elements with
mode="title.markup". Instead, they use mode="label.markup" to generate
the Q & A labels, and that mode is internationalized.
The only place mode="title.markup" is applied to those elements is when
collecting olink data. That mode uses generic templates to process all
elements in a similar manner, and mode="title.markup" is applied to
generate the <ttl> element in the olink data. But the default processing
for resolving olinks uses the <xreftext> element in the olink data, and
that element is internationalized. The <ttl> element is only used when
you build your own olink style like this:
<olink xrefstyle="select: title"
and the targetptr points to a question or answer element. Since neither
element supports title, that would be a risky usage anyway.
Regardless, this is still a bug that should get fixed. Can you please
file a bug report on the DocBook SourceForge site so we can track it?
Thanks.
Bob Stayton
Sagehill Enterprises
b...@sagehill.net
On 7/23/2014 9:17 AM, Stefan Knorr wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Hi all,
just a question: Is the following a localisation bug or am I
overlooking something obvious and this is fine?
DocBook 1.78.1, file: common/titles.xsl, line 485ff:
[...]
<xsl:template match="answer" mode="title.markup">
<!-- answers don't have titles -->
<xsl:text>Answer</xsl:text>
</xsl:template>
<xsl:template match="qandaentry" mode="title.markup">
<!-- qandaentrys are represented by the first question in them -->
<xsl:text>Question</xsl:text>
</xsl:template>
[...]
Regards,
Stefan.
- --
SUSE LINUX Products GmbH, Maxfeldstraße 5, D-90409 Nürnberg
Geschäftsführer: Jeff Hawn, Jennifer Guild, Felix Imendörffer
HRB 16746 (Amtsgericht Nürnberg)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
iF4EAREIAAYFAlPP4CoACgkQ5AP3bIqhlM355AEAtpPLItZvV+wAyFlV1IWXhFm1
ptekAUJKVRRPju8i5ycA/3la1UZn2A83dPoWtwE6JDuobgbV+4qrwgiOxo5LIn5t
=i5y6
-----END PGP SIGNATURE-----
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org
---------------------------------------------------------------------
To unsubscribe, e-mail: docbook-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-h...@lists.oasis-open.org