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


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





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