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] | [Elist Home]


Subject: Re: DOCBOOK-APPS: Re: DOCBOOK: Bug?


On Fri, Nov 22, 2002 at 09:51:09AM -0800, Bob Stayton wrote:
> On Fri, Nov 22, 2002 at 04:48:36PM +0100, Stefan Priebsch (e-novative GmbH) wrote:
> > Hi list,
> > 
> > we've just experienced the following: when creating an empty title
> > (<title></title>) for a table and creating XHTML using the 1.57.0
> > stylesheets, the </a> is missing in the list of tables HTML, which screws
> > up the following line, of course.
> > 
> > Is there anything wrong on my side or does this happen to be a bug?
> 
> 
> [moving this to the docbook-apps list]
> 
> What you are seeing is actually a closed XML element:
> 
> 2.1. <a href="#id2792719"/>
>                          ^
> 
> The trailing slash closes the empty element.
> This is perfectly valid XML, but HTML browsers don't
> understand it.  This is one of the incompatibilities
> between XHTML and many current browsers.

  For those using xsltproc, I just released libxml2-2.4.28 which should
close this problem. The XML serializer look at the DOCTYPE and if XHTML1
will then make the appropriates changes listed in the XHTML1 spec, example
paphio:~/tmp -> xsltproc docbook-xsl-1.56.1/xhtml/docbook.xsl sample.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>
<html xmlns="http://www.w3.org/1999/xhtml";><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>Trivial example</title><meta name="generator" content="DocBook XSL Stylesheets V1.56.1" id="generator" /></head><body><div class="article"><div class="titlepage"><div><h1 class="title"><a id="id2892826"></a>Trivial example</h1></div><hr /></div><p>
    Just a trivial docbook article.
  </p></div></body></html>
paphio:~/tmp ->

  things like the meta charset tag, <a id="id2892826"></a> and <hr />

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard@redhat.com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/


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


Powered by eList eXpress LLC