This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: Newbie troubles with Docbook/XML + XHTML
- From: Steffen Maier <Steffen dot Maier at studserv dot uni-stuttgart dot de>
- To: John Levon <levon at movementarian dot org>
- Cc: docbook-apps at lists dot oasis-open dot org
- Date: Tue, 07 May 2002 21:27:50 +0200 (CEST)
- Subject: Re: DOCBOOK-APPS: Newbie troubles with Docbook/XML + XHTML
Hello John,
On Sun, 5 May 2002, John Levon wrote:
> On Sat, May 04, 2002 at 11:41:42PM +0200, Steffen Maier wrote:
> > > Works a treat, thanks /very/ much. Now the only problem I have
> > > left is the xmlns thing, and I suppose a low-tech sed solution
> > > will do for that.
> >
> > What does "the xmlns thing" look like? Is it introducing a wrong namespace
> > or even using unsensible xml-syntax like in the following postings?
>
> No, the syntax is correct (I use xsltproc not saxon).
>
> I get :
>
> <hr xmlns="http://www.w3.org/1999/xhtml"/>
>
> etc. for most elements.
I remember the following thread about something similar:
http://sources.redhat.com/ml/docbook-apps/2002-q1/msg00155.html
> The XHTML validators don't accept xmlns as a valid attribute.
IIRC, strictly speaking xmlns is not a real xml attribute but rather a
namespace deklaration using attribute syntax. Maybe that's the reason?
> Any ideas ?
Maybe you use an outdated version of xsltproc. E.g., I have an old version
under Windows which shows comparable namespace reduction bugs.
> p.s. is there any stylesheets that produce XHTML 1.0+ Strict rather than
> Transitional ?
Not really (yet). There were some discussions about moving to XHTML
strict and Norm realized a bunch of requirements.
http://sources.redhat.com/ml/docbook-apps/2001-q4/msg00948.html
There was a FIXME inside docbook-xsl-1.49/xhtml of which in 1.50.0 only a
FIXME.bak is left. That file mentions some changes with respect to valid
XHTML.
HTH,
Steffen.
--
http://w3studi.informatik.uni-stuttgart.de/~maiersn/
mailto:Steffen.Maier@studserv.uni-stuttgart.de