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] Re: [docbook] Using an image on the titlepage


Bob Stayton wrote:

> I think it is a bug.  In fact, I can't imagine why that test is there at
> all.  If someone needs to have a blank titlepage, why not let them?

I added this test while ago because without it when you have blank 
titlepage template you will get empty fo:block (or div for HTML output). 
Empty fo:block is not problem at all, but empty div was a big problem, 
because this empty div caused HTML headings to be closer to previous 
paragraph then to following.

I didn't imagined situation when there will be empty string value of 
$recto.content while there will be some element content -- this is case 
of images.

Because of RTF hassles we can't test containment of subelements 
directly, so we must change condition to:

<xsl:if test="normalize-space($recto.content) != '' or 
exsl:node-set($recto.content)/*">

But in this case stylesheets will not work with non-EXSLT enabled XSLT 
processor.

The best we can do is to test for non-empty string value of 
$recto.content in all XSLT processor and add additional check for 
sublements for EXSL enables processors.

					Jirka

-- 
------------------------------------------------------------------
   Jirka Kosek     e-mail: jirka@kosek.cz     http://www.kosek.cz
------------------------------------------------------------------
   Profesionální školení a poradenství v oblasti technologií XML.
      Podívejte se na náš nově spuštěný web http://DocBook.cz
        Podrobný přehled školení http://xmlguru.cz/skoleni/
------------------------------------------------------------------

S/MIME Cryptographic Signature



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