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


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

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

Subject: Re: [docbook] Localisation bug in common/titles.xsl?

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?

Bob Stayton
Sagehill Enterprises

On 7/23/2014 9:17 AM, Stefan Knorr wrote:
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:template match="qandaentry" mode="title.markup">
   <!-- qandaentrys are represented by the first question in them -->



- --
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)
Version: GnuPG v2.0.22 (GNU/Linux)


To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-help@lists.oasis-open.org

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