This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Conditional text display in PDF


Hi

I am trying to customize my PDF output for an article,
using the DocBook stylesheets.

It appears that the stylesheets process and produce
output from a section, even when its blank - this results
in a fair amount of unneeded white space in my documents.

I am trying to get the processor to skip these sections.  
I have set up a template in my customisation file :

<!-- sections -->
<xsl:template match="sect1" mode="article.recto.mode"> 
  <xsl:choose>
    <xsl:when test="title=''"><fo:block>BOO!</fo:block></xsl:when> <!--
test ignore blank section -->
    <xsl:otherwise>
      <xsl:apply-templates 
             select="sect1"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

But this template gets ignored for a section such as:

<sect1>
<title></title>
<para></para>
</sect1>

What is the correct way to setup such an "override" template?

Thanks for help with these 'basic' questions.

Derek

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]