[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] XSL cutomization question: how to generate text for <section id='x'><title>text</title></section>
On Tue, Aug 05, 2003 at 05:37:29PM -0400, Taro Ikai wrote: > I am trying to understand how to customize the generation of text for > a xref to a <section>. My reference looks like: > > <xref linkend='foo'/> > > and the element pointed to looks like: > > <section id='foo'><title>Text I want to get out is > here</title></section>. > > I followed docbook-xsl/html/xref.xsl to the following block: > > <xsl:template match="section|simplesect > |sect1|sect2|sect3|sect4|sect5 > |refsect1|refsect2|refsect3" mode="xref-to"> > <xsl:param name="referrer"/> > <xsl:param name="xrefstyle"/> > > <xsl:apply-templates select="." mode="object.xref.markup"> > <xsl:with-param name="purpose" select="'xref'"/> > <xsl:with-param name="xrefstyle" select="$xrefstyle"/> > <xsl:with-param name="referrer" select="$referrer"/> > </xsl:apply-templates> > <!-- FIXME: What about "in Chapter X"? --> > </xsl:template> > > > But I don't understand which template > > <xsl:apply-templates select="." mode="object.xref.markup"> > > then matches. When looking for templates, don't forget to also look in the 'common' and 'lib' subdirectories. In this case, common/gentext.xsl contains: <xsl:template match="*" mode="object.xref.markup"> That template will locate the appropriate gentext template from a locale file such as common/en.xml, and then use the substitute-markup template to fill it in. -- Bob Stayton 400 Encinal Street Publications Architect Santa Cruz, CA 95060 Technical Publications voice: (831) 427-7796 The SCO Group fax: (831) 429-1887 email: bobs@sco.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]