This is the mail archive of the
docbook-apps@lists.oasis-open.org
mailing list .
Re: [docbook-apps] 5 Questions: from PHP tags to XIncludes
- From: "Bob Stayton" <bobs at sagehill dot net>
- To: "Frans Englich" <frans dot englich at telia dot com>, <docbook-apps at lists dot oasis-open dot org>
- Date: Sat, 24 Jul 2004 10:48:36 -0700
- Subject: Re: [docbook-apps] 5 Questions: from PHP tags to XIncludes
- References: <200407240652.56254.frans.englich@telia.com>
----- Original Message -----
From: "Frans Englich" <frans.englich@telia.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Friday, July 23, 2004 11:52 PM
Subject: [docbook-apps] 5 Questions: from PHP tags to XIncludes
> 2. Invalid XHTML
>
> I have the following in my driver:
> <xsl:template name="user.header.content">
> <p>
> <font size="-2" >
>
> [...]
>
> And the (first p tag) output is:
> <p xmlns="">
>
> Why does it have a namespace tag?
Because the XHTML output is in a namespace. The <html> element in your
XHTML output should have:
<html xmlns="http://www.w3.org/1999/xhtml">
Your customization doesn't identify a namespace for its output, so the XSLT
processor puts the output for your elements into an unnamed namespace to
distinguish it from the xhtml namespace. What you want is for your elements
to be in the xhtml namespace too. See this reference to see how to add that
to your customization file:
http://www.sagehill.net/docbookxsl/OtherOutputForms.html#d0e23546
Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobs@sagehill.net