[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] How to show URL after link text for PDF output from Docbook 5.0?
Well, it looks like the ulink.show feature was "misplaced" in the transition. I wonder if we should continue to use the ulink.show parameter name, since it is no longer a ulink element? I suppose so. It should probably work only when a link element contains an external URL, and not apply to another element with an xlink that is external. Does that make sense? Since you want custom behavior anyway, this solution or something like it in a customization layer should work for you: <xsl:template match="d:link[@xrefstyle = 'ulink']"> <xsl:call-template name="simple.xlink"> <xsl:with-param name="content"> <xsl:apply-templates/> <xsl:text> (</xsl:text> <xsl:value-of select="@xlink:href"/> <xsl:text>)</xsl:text> </xsl:with-param> </xsl:call-template> </xsl:template> It adds the href when the attribute xrefstyle="ulink". Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "ggrasboeck" <g.grasboeck@inode.at> To: <docbook-apps@lists.oasis-open.org> Sent: Monday, June 18, 2007 4:58 AM Subject: [docbook-apps] How to show URL after link text for PDF output from Docbook 5.0? > > We have switched to a Docbook 5.0 toolchain with xsltproc and FOP > recently. > All problems regarding output formatting (especially PDF) could be solved > with one exception. > > For nearly all external links we want our destination URLs to be shown > after > the link text in PDF output and could find no way to do that with Docbook > 5.0CR4, docbook5-xsl 1.72.0 and FOP 0.93. ulink.show does not seem to > work > anymore, i assume because ulink should be dead in Version 5. > We also have some exceptions to this rule, so a solution an a per-link > basis > would be preferrable for us over a global transformation setting. > > Our links all look like this: > > <link > xlink:href="http://parlament.gv.at/path/to/doku/DocName.xml">XML-File</link> > > and the output in PDF should look like this: > > XML-File (http://parlament.gv.at/path/to/doku/DocName.xml) > > with the destination URL shown after the link text. > > We did this before with Docbook 4.2 and a LaTeX toolchain but with the > new > toolchain we could find no working solution. I have already searched the > documentation and the forums, but could find no working solution. > Any help on this would be appreciated. > > Regards > Gerhard Grasboeck > -- > View this message in context: > http://www.nabble.com/How-to-show-URL-after-link-text-for-PDF-output-from-Docbook-5.0--tf3939712.html#a11173914 > Sent from the docbook apps mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > 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]