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: epub transform bug? sidebar without title bolds everything? (bad rendering in Firefox?)

 I've been having issues with epub output of a docbook 5 project. This
problem does NOT occur when I use the HTML chunk XSL transform.

I have 3 questions:

 1. why does epub HTML  output for sidebar.title include a <b/> tag?
 2. why does  <b/> in Firefox and IE cause all remaining html
paragraphs to render as bold when a title element in sidebar is empty?
 3.is there a docbook way to suppress the display of the
sidebar.title? (I know you could do it in css).

If sidebar.title is to be visible, it would seem odd for the html
output to use <b> (instead of <strong> for example).

I have a test project with xincludes, a customization layer and a
title.xsl generated by titlepage.templates.xml . Below is a version of
it without xincludes to illustrate the problem.

The main index.xml file validates even if  I fail to put a title
element inside the sidebar. All  text following it in the browser (IE
& firefox)  will be bold as a result of the b tags.  The same thing
will happen if I include an empty title here. If I include a title tag
with a value, everything will render correctly (although the <b> tag
still appears.

Looking at docbook reference
http://www.docbook.org/tdg5/en/html/sidebar.html , I see that sidebar
requires a title --even though my docbook validated just fine without
one. Strange.

Anyone know what's up?



HTML Output from epub docbook.xsl  looks like this:

           <div class="epigraph"><p> This is an epigraph</p></div>
           <p>This is a test before sidebar. </p>
 <!----------------------------------- an empty title element inside
sidebar  the random </b> tag below  screws up the rendering in the
           <div class="sidebar"><p class="title"><b/></p>

               <div class="mediaobject"><img src="myimages/image.jpg"
alt="Artist name"/><div class="caption">
                       <p>  Name of Painting </p>
           <p>hello One day, <span class="strong"><strong>
strong</strong></span>Littering a dark and
               dreary road lay the past relics of browser-specific
tags, incompatible DOMs, and
               broken CSS support.</p>

here is the source xml:

<?xml version="1.0" encoding="UTF-8"?>
<?oxygen RNGSchema="http://www.oasis-open.org/docbook/xml/5.0/rng/docbookxi.rng";
<!DOCTYPE book [
<!ENTITY % isopub SYSTEM "http://www.w3.org/2003/entities/iso8879/isopub.ent";>
<book xmlns="http://docbook.org/ns/docbook";
   xmlns:xlink="http://www.w3.org/1999/xlink"; version="5.0">
       <title>Book Project </title>
               <firstname>Robert </firstname>

   <preface label="preface">
       <title>Preface Title</title>
               <imagedata fileref="myimages/fornarina3.jpg" format="JPG"/>


   <part label="firststory">
       <title> Notions &mdash;</title>
       <chapter xmlns="http://docbook.org/ns/docbook"; version="5.0"

           <title>First Story</title>
               <annotation role="chaptersummary">
                   <para>This is a chapter summary </para>


               <para> This is an epigraph</para>
           <para>This is a test before sidebar. </para>
<!--                    <title>hello</title>-->
<!-----------------------------------------------     i'm showing what
happens when title is empty or missing or commented out

                       <imagedata fileref="myimages/image.jpg" format="JPG"/>
                       <phrase>Artist name </phrase>
                       <para>  Name of Painting </para>
           <para>hello One day, <emphasis role="strong">
strong</emphasis>Littering a dark and
               dreary road lay the past relics of browser-specific
tags, incompatible DOMs, and
               broken CSS support.</para>

Robert Nagle

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