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] Question: Removing Namespace attribute in XHTML header style element



Actually, you probably need to add the XHTML namespace to your style element.  The output elements for XHTML are in the XHMTL namespace, and if you output an element not in that namespace, the XSLT processor assigns it the null namespace.  To ensure any customization's output is in the XHTML namespace, make it the default namespace for your customization stylesheet:
 
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                xmlns="http://www.w3.org/1999/xhtml"
                version="1.0">
Bob Stayton
Sagehill Enterprises
bobs@sagehill.net
 
 
----- Original Message -----
From: Chad A.
Sent: Friday, August 08, 2008 9:08 AM
Subject: [docbook-apps] Question: Removing Namespace attribute in XHTML header style element

Hi,

When I attach a css styles into my XHTML docs using a custom Docbook XSL stylesheet using the following lines...

&lt;!DOCTYPE xsl:stylesheet [
&lt;!ENTITY css ".command {
   display: block;
    font-family: monospace;
    border: thin black dotted;
    padding: 1em;
    background-color: #E0E0E0;
}"&gt;
]&gt;

...the XHTML output produced after the transformation looks like this...

   &lt;style xmlns="" type="text/css"&gt;
.command {
   display: block;
    font-family: monospace;
    border: thin black dotted;
    padding: 1em;
    background-color: #E0E0E0;
}

The problem is with the xmlns="" attribute.  It's presence prevents the XHTML from passing validation tests.  Is there anyway to remove this attribute?

Thanks in advance,
Chad


p.s., the real markup has greater than and less than signs, not the entities that I have inserted in the code about.

--
Chad A.
http://www.neomantic.com



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