This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] 5 Questions: from PHP tags to XIncludes


----- 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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]