This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] xrefstyle attribute; pagenumber; %p
- From: Thomas Gier <thomas dot gier at gmx dot de>
- To: docbook-apps <docbook-apps at lists dot oasis-open dot org>
- Date: Wed, 17 Mar 2004 10:35:10 +0100
- Subject: Re: [docbook-apps] xrefstyle attribute; pagenumber; %p
- References: <200403170202.58409.swhitlat@getnet.net>
Steve Whitlatch wrote:
[...]
Also, I found that using
<xref linkend="FreedomCenterxref"
xrefstyle="template:'%t' on page %p"/>
[..]
Hi Steve,
my comment is a bit off your question but I'd like to mention that
customising the gentext template for your language gives you the
possibility to re-use predefined xrefstyles throughout your documents
and saves you escaping issues and/or writing cryptic syntax in every
xrefstyle attribute.
Just add something like this to your customisation:
<l:i18n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l:l10n language="en">
<l:context name="xref-number-and-title">
<l:template name="sect1" style="steve" text="Chapter %n %t on
page %p"/>
<l:template name="sect2" style="steve" text="Chapter %n %t on
page %p"/>
<l:template name="sect3" style="steve" text="Chapter %n %t on
page %p"/>
<l:template name="sect1" style="short" text="Chapter %n"/>
<l:template name="sect2" style="short" text="Chapter %n"/>
<l:template name="sect3" style="short" text="Chapter %n"/>
</l:context>
</l:l10n>
</l:i18n>
In your document you simply put
See <xref linkend="whatever" xrefstyle="steve">
Cheers
Thomas Gier
Technical Writer
Aachen / Germany
To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.