This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: 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 (&#x00A0;) to keep component name with
number in xrefs -->
		<l:template name="appendix" text="Appendix&#x00A0;%n,
&#8220;%t&#8221; on page %p"/>
		<l:template name="chapter" text="Chapter&#x00A0;%n,
&#8220;%t&#8221; on page %p"/>
		<l:template name="example" text="Example&#x00A0;%n on
page %p"/>
		<l:template name="figure" text="Figure&#x00A0;%n on page
%p"/>
		<l:template name="part" text="Part&#x00A0;%n,
&#8220;%t&#8221; on page %p"/>
		<l:template name="procedure" text="Procedure&#x00A0;%n
on page %p"/>
		<l:template name="section" text="Section&#x00A0;%n,
&#8220;%t&#8221; on page %p"/>
		<l:template name="table" text="Table&#x00A0;%n on page
%p"/>
	  </l:context>
	  <l:context name="section-xref">
		<l:template name="section" text="Section&#x00A0;%n,
&#8220;%t&#8221; on page %p"/>
	  </l:context>
	  <l:context name="section-xref-numbered">
		<l:template name="section" text="Section&#x00A0;%n,
&#8220;%t&#8221; 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]