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: Re: [docbook-apps] Line breaking is ignored on a cover page when creating a PDF


Hi,
The sbr element is not a general line breaking element, as it is only permitted in syntax elements like arg, cmdsynopsis, group, and rhs.  As such, the stylesheets don't support it in title or other elements.  You must use a processing instruction instead.  See:
 
http://www.sagehill.net/docbookxsl/LineBreaks.html
 
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
Sent: Sunday, February 21, 2010 4:57 AM
Subject: [docbook-apps] Line breaking is ignored on a cover page when creating a PDF

Hi folks,

In my stylesheet, the text block for creating the document's title on the front cover page is defined as follows:

<xsl:template name="front.cover">
  <fo:page-sequence master-reference="front-cover" force-page-count="no-force">
    <fo:flow flow-name="xsl-region-body">
      <fo:block
        text-align="left"
        font-size="30pt"
        color="&j_cover_color;"
        padding-top="240pt"
        border-bottom="2pt solid &j_cover_color;"
        padding-bottom="1pt"
        margin-right="30pt"
        margin-left="75pt"
        font-weight="bold"
        font-family="{$title.fontset}">
        <xsl:value-of select="normalize-space(//bookinfo//title)"/>
      </fo:block>

      <fo:block
        text-align="left"
        font-size="25pt"
        space-before="19pt"
        font-family="{$title.fontset}"
        color="&j_cover_color;"
        margin-right="30pt"
        margin-left="75pt"
        padding-top="5pt"
        padding-bottom="3pt">
        <xsl:value-of select="normalize-space(//bookinfo//subtitle)"/>
      </fo:block>
    </fo:flow>
  </fo:page-sequence>
</xsl:template>


When I insert <sbr/> in the title, the line breaking command is ignored. The same happens with <trademark></trademark> - the 'tm' symbol does not appear on the cover page.

Please, advise!!!

Thanks in advance!
nancy



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