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]

Re: [docbook-apps] Conditional text display in PDF


I think the problem is the mode="article.recto.mode".
There is no such mode in the stylesheets, so your template
is never used.  What happens if you omit the mode attribute?

Bob Stayton
Sagehill Enterprises
bobs@sagehill.net


----- Original Message ----- 
From: "Derek Hohls" <DHohls@csir.co.za>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, January 15, 2004 3:46 AM
Subject: [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/.
>
>
>



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]