OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: FOP :: Program listings :: Breaking long lines



hi folks,

i'm playing around with the docbook-style-sheets to render program listings
using xalan and fop. to break long lines, i followed the steps described at
http://www.sagehill.net/docbookxsl/ProgramListings.html#BreakLongLines.
so far so good, lines are breaking fine, but the hyphenation-character, which
i set to "\", doesn'T appear neigther in fo file nor in the pdf output. the fo-line
is the following

-- snip --
<fo:block
  font-family="monospace"
  hyphenate="false"
  hyphenation-character="\"
  linefeed-treatment="preserve"
  text-align="start"
  white-space-collapse="false"
  white-space-treatment="preserve"
  wrap-option="wrap">...</fo:block>
-- snap --

the lines of my fo/param.xsl:
-- snip --
<xsl:param name="hyphenate.verbatim" select="1"/>
<xsl:param name="hyphenate.verbatim.characters" select="' \'"/>
<xsl:attribute-set name="monospace.verbatim.properties" use-attribute-sets="verbatim.properties monospace.properties">
  <xsl:attribute name="text-align">start</xsl:attribute>
  <xsl:attribute name="wrap-option">wrap</xsl:attribute>
  <xsl:attribute name="hyphenation-character">\</xsl:attribute>
</xsl:attribute-set>
<xsl:param name="use.extensions" select="'1'"/>
-- snap --

is this a problem of fop or is something misconfigured in my param.xsl? or is that an
issue to be fixed in fo/docbook.xsl and its includes?

thank for any advise!

yours MicFra

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]