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 [EMAIL PROTECTED] ----- Original Message ----- From: Chad A. To: [email protected] 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... <!DOCTYPE xsl:stylesheet [ <!ENTITY css ".command { display: block; font-family: monospace; border: thin black dotted; padding: 1em; background-color: #E0E0E0; }"> ]> ...the XHTML output produced after the transformation looks like this... <style xmlns="" type="text/css"> .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
