Dave Pawson | 1 Jul 2007 16:41
Picon

Re: localization.

Thomas Schraitle wrote:
> Hi Dave,
> 
> On Sonntag, 1. Juli 2007, Dave Pawson wrote:
>> In en.xml etc, there are uses of %t, %n etc.
> 
> %t = title
> %s = subtitle (if available)
> %n = number
> %p = page number (if applicable)

> Some examples can be find in this section:
>   http://www.sagehill.net/docbookxsl/CustomXrefs.html#XrefGentext
> 
> Hope that helps. :)

Yes, thanks Tom. I guessed at %n, but couldn't be sure.

I'm guessing that's relative content?
current()/title etc.

regards

--

-- 
Dave Pawson
XSLT XSL-FO FAQ.
http://www.dpawson.co.uk
Keith Fahlgren | 9 Jul 2007 02:24
Picon
Gravatar

Re: localization.

On 7/1/07, Dave Pawson <davep <at> dpawson.co.uk> wrote:
> Thomas Schraitle wrote:
> > Hi Dave,
> >
> > On Sonntag, 1. Juli 2007, Dave Pawson wrote:
> >> In en.xml etc, there are uses of %t, %n etc.
> >
> > %t = title
> > %s = subtitle (if available)
> > %n = number
> > %p = page number (if applicable)

"""Any %t mark in the attribute value is a placeholder for the
element's title, and %n is a placeholder for its number (if it is
numbered)."""
http://www.sagehill.net/docbookxsl/CustomGentext.html

"""The %p is the placeholder for the generated page number. If you are
translating your documents to other languages, you may need to add
similar customizations to the gentext for those languages."""
http://www.sagehill.net/docbookxsl/CustomXrefs.html

HTH,
Keith
Keith Fahlgren | 9 Jul 2007 02:37
Picon
Gravatar

Re: localization.

On 7/8/07, Keith Fahlgren <abdelazer <at> gmail.com> wrote:
> On 7/1/07, Dave Pawson <davep <at> dpawson.co.uk> wrote:
> > Thomas Schraitle wrote:
> > > Hi Dave,
> > >
> > > On Sonntag, 1. Juli 2007, Dave Pawson wrote:
> > >> In en.xml etc, there are uses of %t, %n etc.
> > >
> > > %t = title
> > > %s = subtitle (if available)
> > > %n = number
> > > %p = page number (if applicable)

Here's a potential list of the "etc", if someone else needs it (the
template names may be helpful documentation). This is from
1.71.1/common/gentext.xsl:

<xsl:when test="$candidate = 't'">
  <xsl:apply-templates select="." mode="insert.title.markup">
--
<xsl:when test="$candidate = 's'">
  <xsl:apply-templates select="." mode="insert.subtitle.markup">
--
<xsl:when test="$candidate = 'n'">
  <xsl:apply-templates select="." mode="insert.label.markup">
--
<xsl:when test="$candidate = 'p'">
  <xsl:apply-templates select="." mode="insert.pagenumber.markup">
--
<xsl:when test="$candidate = 'o'">
(Continue reading)


Gmane