The Artima Developer Community
Sponsored Link

Java Buzz Forum
Slightly Prettier DocBook Reference Pages

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paul Brown

Posts: 284
Nickname: paulrbrown
Registered: Dec, 2003

Paul Brown is an entrepreneur
Slightly Prettier DocBook Reference Pages Posted: Jul 26, 2004 5:58 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Paul Brown.
Original Post: Slightly Prettier DocBook Reference Pages
Feed Title: mult.ifario.us
Feed URL: http://feeds.feedburner.com/MultifariousCategoryJava
Feed Description: Software. Business. Java. XML. Web Services.
Latest Java Buzz Posts
Latest Java Buzz Posts by Paul Brown
Latest Posts From mult.ifario.us

Advertisement
If you're going to create PDF output from DocBook, you need to get comfortable with XSLT, with XSL-FO, and with tracing through the stylesheets, as you'll need to customize the stylesheets and the FO that the produce.One of the initial annoyances is the formatting of <refentry> elements. The default formatting of the fragment:<refentry id="provider-bpel" xreflabel="BPEL service provider"> <refnamediv> <refname>BPEL Service Provider</refname> <refpurpose> Provide BPEL process execution facilities. </refpurpose> </refnamediv>would be:The "--" is just plain ugly when a proper em-dash (&#8212; for the Unicode challenged) is available. Edit the file fo/fo.xsl and change the line:<xsl:when test="$dingbat='em-dash'">--</xsl:when>to<xsl:when test="$dingbat='em-dash'">&#8212;</xsl:when>And then comment out the following in the fo/refentry.xsl at line 315:<fo:block> <xsl:for-each select="refname"> <xsl:apply-templates select="."/> <xsl:if test="following-sibling::refname"> <xsl:text>, </xsl:text> </xsl:if> </xsl:for-each> </fo:block>And, voila:

Read: Slightly Prettier DocBook Reference Pages

Topic: "Groovy bashers" - Everyone doesn't have to like a language Previous Topic   Next Topic Topic: One Year of Blogging

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use