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] 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/
------------------------------------------------------------------

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


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