[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] XREFing a phrase - page number appearing too
Hi George, The following xrefstyle should work, but it doesn't in the 1.69.1 stylesheets: <xref endterm="functionName" xrefstyle="select: nopage" linkend="paraFunctionName"/> I just fixed a bug in the stylesheet that prevented it from working, but that will be in the next snapshot release. Anyway, you may want more global control than putting an xrefstyle attribute on each instance. The page reference is generated by a template with mode="page.citation", with the template matching on the target element (the one with the id). In your example, the target element is the para containing the phrase, so this template in your customization would turn it off for all xrefs to para: <xsl:template match="para" mode="page.citation"/> However, you may want this behavior only for certain paras that contain your functions. You could control it more finely by adding a role to your para and the the template: <para id="paraFunctionName" role="function">here is a phrase <phrase id="functionName">function</phrase>.</para> Then this template could be more selective: <xsl:template match="para[@role='function']" mode="page.citation"/> These will work with the currently released stylesheet. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "George Szabo" <George_Szabo@hyperion.com> To: <docbook-apps@lists.oasis-open.org> Sent: Saturday, November 05, 2005 2:49 PM Subject: [docbook-apps] XREFing a phrase - page number appearing too Hello - Using the FO DpcBook XSL, I'm trying to follow create an XREF to a <phrase> in a <para>, where the <xref>'s link will display the text contained by <phrase>. It seems from the guide that he following would work. However, in the resulting PDF, a link containing the page number in brackets appears to the right of the link containing the phrase: Here's the target: <para id="paraFunctionName">here is a phrase <phrase id="functionName">function</phrase>.</para> Here's the XREF: <para>phrase xref: <xref endterm="functionName" linkend="paraFunctionName"/></para> In the PDF, this results in 2 adjacent links - one containing the text, the 2nd containing the page number: function [3] Is there a way to omit the page number. Using 1.69.1 of the Docbook XSLs & a customization of Docbook XML 4.3 Thank you - -george szabo --------------------------------------------------------------------- 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]