This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Re: DOCBOOK: Bug?
- From: Daniel Veillard <veillard at redhat dot com>
- To: Bob Stayton <bobs at caldera dot com>
- Cc: stefan dot priebsch at e-novative dot de, docbook-apps at lists dot oasis-open dot org
- Date: Fri, 22 Nov 2002 13:02:06 -0500
- Subject: Re: DOCBOOK-APPS: Re: DOCBOOK: Bug?
- References: <1482.192.168.0.27.1037980116.squirrel@intranet><20021122095109.B14068@caldera.com>
- Reply-to: veillard at redhat dot com
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/