[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Conditional text display in PDF
Bob I tried that and it did not work either. What I ended up doing was copying in the actual <xsl:template match="sect1"> and customizing that... maybe that is brute force, but it worked. Derek >>> "Bob Stayton" <bobs@sagehill.net> 2004/01/15 08:21:20 PM >>> 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/. -- 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.
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]