This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
RE: Treatment of links in print
- From: David Cramer <dcramer at broadjump dot com>
- To: Bob Stayton <bobs at caldera dot com>, kdunn at hsc dot edu,docbook-apps at lists dot oasis-open dot org
- Date: Wed, 05 Jun 2002 21:54:18 -0500
- Subject: RE: DOCBOOK-APPS: Treatment of links in print
I haven't tried insert.xref.page.number, using %p in the l10n
definitions works for me:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format"
xmlns:doc="http://nwalsh.com/xsl/documentation/1.0"
exclude-result-prefixes="doc"
version='1.0'>
<xsl:param name="local.l10n.xml" select="document('')"/>
<i18n xmlns="http://docbook.sourceforge.net/xmlns/l10n/1.0">
<l10n xmlns:l="http://docbook.sourceforge.net/xmlns/l10n/1.0"
language="en">
<l:context name="xref">
<!-- Using nbsp ( ) to keep component name with
number in xrefs -->
<l:template name="appendix" text="Appendix %n,
“%t” on page %p"/>
<l:template name="chapter" text="Chapter %n,
“%t” on page %p"/>
<l:template name="example" text="Example %n on
page %p"/>
<l:template name="figure" text="Figure %n on page
%p"/>
<l:template name="part" text="Part %n,
“%t” on page %p"/>
<l:template name="procedure" text="Procedure %n
on page %p"/>
<l:template name="section" text="Section %n,
“%t” on page %p"/>
<l:template name="table" text="Table %n on page
%p"/>
</l:context>
<l:context name="section-xref">
<l:template name="section" text="Section %n,
“%t” on page %p"/>
</l:context>
<l:context name="section-xref-numbered">
<l:template name="section" text="Section %n,
“%t” on page %p"/>
</l:context>
</l10n>
</i18n>
</xsl:stylesheet>
David
> -----Original Message-----
> From: Bob Stayton [mailto:bobs@caldera.com]
> Sent: Wednesday, June 05, 2002 6:02 PM
> To: kdunn@hsc.edu; docbook-apps@lists.oasis-open.org
> Subject: Re: DOCBOOK-APPS: Treatment of links in print
> On Wed, Jun 05, 2002 at 06:49:23PM -0400, Kevin Dunn wrote:
> >
> >
> > >to give
> > >I would like to render
> > ><para>
> > >For an example of this procedure, refer to
> > ><link linkend="foo">Foo</link>
> > ></para>
> > >
> > >As
> > >
> > >"For an example of this procedure, refer to Foo (p. 29)"
> > >
> > >Where 29 is the page. I'd also be satisfied with
>
> If this is being processed with the XSL stylesheets,
> try setting the stylesheet parameter
> 'insert.xref.page.number' to 1 in a customization
> layer. It's supposed to do that, but I've not
> tried it with the current versions of the FO processors.