[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Unexpected xref behavior; is this a case for Two-pass processing
I can't tell you where to look since I haven't seen your customization. I can show you the 'if' statement that determines whether a page reference is generated: <xsl:if 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'"> the first three lines are only when an xrefstyle attribute is used, and the last three show how the attribute value is used. You might try putting an <xsl:message> statement in your stylesheet to echo the value of the parameter at runtime: <xsl:message>The value of insert.xref.page.number is <xsl:value-of select="$insert.xref.page.number"/></xsl:message> That would confirm you are getting the value you expect to be getting. Bob Stayton Sagehill Enterprises bobs@sagehill.net ----- Original Message ----- From: "Steve Whitlatch" <swhitlat@getnet.net> To: "Bob Stayton" <bobs@sagehill.net>; <docbook-apps@lists.oasis-open.org> Sent: Sunday, January 25, 2004 9:26 PM Subject: Re: [docbook-apps] Unexpected xref behavior; is this a case for Two-pass processing > On Sunday 25 January 2004 01:59 pm, Bob Stayton wrote: > > > Perhaps something else in your customization is > > turning insert.xref.page.number back on? > > Must be. Any suggestions on where I should look? > > My customization layers is already nearly 500 lines. Even though it's > about half comments, it's still daunting for my first DocBook XML/XSL > combo. No way out of the complexity with the Docbook approach, or so > it seems. > > > > > Bob Stayton > > Sagehill Enterprises > > bobs@sagehill.net > > > > > > ----- Original Message ----- > > From: "Steve Whitlatch" <swhitlat@getnet.net> > > To: <docbook-apps@lists.oasis-open.org> > > Sent: Saturday, January 24, 2004 6:33 PM > > Subject: [docbook-apps] Unexpected xref behavior; is this a case > > for Two-pass processing > > > > > In my XSL customization layer, I use: > > > <xsl:param name="xref.with.number.and.title" select="0"> > > > <xsl:param name="insert.xref.page.number">no</xsl:param> > > > > > > In the XML document, I have: > > > <figure id="Figure1"> > > > . > > > . > > > . > > > <xref linkend="Figure1"/> > > > > > > But the output is: > > > Figure 1 [3] > > > > > > For now, I just want to get rid of the part that includes the > > > page number. I expected the above XSL to do that, but no. > > > > > > Also, it seems that specifying inclusion/exclusion of the page > > > number should be in only a single parameter, and specifying the > > > title and page number should not be tied together. > > > > > > Perhaps we could have: > > > <xsl:param name="xref.with.number" select=""> > > > <xsl:param name="xref.with.title" select=""> > > > and we don't need > > > <xsl:param name="insert.xref.page.number"></xsl:param> > > > > > > At least not for xrefs. > > > > > > If there is a case to be made that we need > > > <xsl:param name="insert.xref.page.number"></xsl:param> > > > OK, but we still need to break the number and title inclusion/ > > > exclusion params into two, no? > > > > > > A textual reference to a figure that is on the same page as the > > > figure need not include the page number. Later, I will look for a > > > technique by which inclusion of the page number can be turned on > > > and off depending on whether the reference and the target are on > > > the same page. Any tips? > > > > > > System: > > > ********************** > > > DocBook XML DTD 4.2, DocBook XSL stylesheets 1.64-1, > > > FOP-0.20.5, Linux, > > > xsltproc --version > > > Using libxml 20604, libxslt 10101 and libexslt 801 > > > xsltproc was compiled against libxml 20604, libxslt 10101 and > > > libexslt 801 > > > libxslt 10101 was compiled against libxml 20604 > > > libexslt 801 was compiled against libxml 20604 > > > > > > Thanks, > > > > > > Steve Whitlatch > > > > > > > > > To unsubscribe from this list, send a post to > > > > docbook-apps-unsubscribe@lists.oasis-open.org, or visit > > http://www.oasis-open.org/mlmanage/. > > > > > > > > > > > > > > To unsubscribe from this list, send a post to > > docbook-apps-unsubscribe@lists.oasis-open.org, or visit > > http://www.oasis-open.org/mlmanage/. > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]