Coloring links and activate.external.olinks ?

9 views
Skip to first unread message

Mark Craig

unread,
May 23, 2014, 3:19:56 AM5/23/14
to docbkx-to...@googlegroups.com
Hello,

I have olinks working in PDF, and am looking at deactivating external links by setting activate.external.olinks to 0. I'm using 2.0.15.

But I would also like to continue coloring active links. Otherwise links in the PDF are only obvious when you mouse over them. This is the customization in my test:

  <xsl:param name="activate.external.olinks" select="0" />
  <!--<xsl:param name="activate.external.olinks" select="1" />-->
  <xsl:attribute-set name="xref.properties">
    <xsl:attribute name="color">#47a</xsl:attribute>
  </xsl:attribute-set>

Unfortunately this also colors links that are not active. (To reproduce the problem, get https://github.com/markcraig/DOCS-47 , then run `mvn pre-site`, and check the link in target/docbkx/pdf/other-book.pdf.)

In a conversation on the docbook-apps list, Bob Stayton tells me that this works for him with the same configuration. See http://markmail.org/message/rqqgrkqmhsisfhj4

Is there something in docbkx-tools 2.0.15 that causes deactivated links to be colored?
Is there something I should change in the customization or configuration to prevent the deactivated links from being colored?

Thanks for your help.

Regards,
Mark

Mimil

unread,
May 25, 2014, 3:36:37 PM5/25/14
to docbkx-to...@googlegroups.com, docbkx-to...@googlegroups.com
Hello,

I am not sure docbkx is involed in this issue, could you double check with docbook dev with the particular version of docbook stylesheet involved in 2.0.15? And also check which FOP version is used?

(I do not have sources right now, just open the pom files of docbkx to see the dependencies)

Regards,
Cedric
--
You received this message because you are subscribed to the Google Groups "Docbkx Tools Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to docbkx-tools-us...@googlegroups.com.
To post to this group, send email to docbkx-to...@googlegroups.com.
Visit this group at http://groups.google.com/group/docbkx-tools-users.
For more options, visit https://groups.google.com/d/optout.

Mark Craig

unread,
Jun 3, 2014, 3:28:56 PM6/3/14
to docbkx-to...@googlegroups.com
Hi Cedric,

I think I have reproduced the problem just with the stylesheets... but the output is not quite exactly the same. I'm not certain the olinks are getting properly resolved on the second pass.

https://github.com/markcraig/DOCS-47/commit/6b5ca793474887655dcfe95d585a8e0cbf5af9e5 adds a script and a separate custom stylesheet. You have manually to set where FOP 1.1 and the 1.78.1 stylesheets are installed. I didn't try to do that as part of my script.

I'll mention it in the thread on docbook-apps. Maybe Bob Stayton or someone has a test that can help me see where my example is incorrectly configured.

Regards,
Mark

Reply all
Reply to author
Forward
0 new messages