[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] insert.xref.page.number ignored when using xreflabel
You're absolutely right Manuel, the behavior had nothing to do with xreflabel and everything to do with the xref pointing to a para. I'm not sure why the para case is singled out but thanks for figuring out what was going on there -- I totally missed the "or local-name($target) = 'para'" section of the stylesheet. Ken On 5/22/07, M.Canales.es <macana@macana-es.com> wrote: > El Martes, 22 de Mayo de 2007 20:40, Ken Morse escribió: > > > Rendering your example with FOP-0.93 the page number is here on both cases, > using @xreflabel or not, just like the stylesheets want. > > From fo/xref.xsl: > > <xsl:template match="xref" name="xref"> > . > . some stuff .... > . > <!-- Add standard page reference? --> > . > . more stuff... > . > <!-- positive xrefstyle already handles it --> > <xsl:when test="not(starts-with(normalize-space($xrefstyle), 'select:') > and (contains($xrefstyle, 'page') > or contains($xrefstyle, 'Page'))) > and ( $insert.xref.page.number = 'yes' > or $insert.xref.page.number = '1') > or local-name($target) = 'para'"> > <xsl:apply-templates select="$target" mode="page.citation"> > <xsl:with-param name="id" select="$target/@id|$target/@xml:id"/> > </xsl:apply-templates> > </xsl:when> > </xsl:choose> > </xsl:template> > > As you can see, the page number is added based on @xrefstyle values, or based > on $insert.xref.page.number value, or always that > local-name($target)='para'. > > I don't know why the page number is added always for <para> targets, but you > can avoid it removing that condition from the test. > > -- > Manuel Canales Esparcia > Usuario de LFS nº2886: http://www.linuxfromscratch.org > LFS en castellano: http://www.escomposlinux.org/lfs-es http://www.lfs-es.info > TLDP-ES: http://es.tldp.org > > --------------------------------------------------------------------- > To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org > For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]