[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: generate XHTML header without causing xmlns attrib

Subject: RE: generate XHTML header without causing xmlns attributes in e.g. <table>?
From: Jarno.Elovirta@xxxxxxxxx
Date: Fri, 17 Oct 2003 10:55:07 +0300
empty xmlns attributes ie
Hi,

> However, my tables cannot validate using w3c's validator, 
> since they get an empty attribute with the name xmlns, like this:
> <table xmlns="" id="y" class="z">

Somewhere in your stylesheet you've declared the the default namespace to be null, i.e. to be in no namespace.
 
> Also the XHTML tags inside the table (not td/tr but all 
> others) also get the xmlns attribute which has no value and 
> they also get an xmlns:fo attribute like this:
> <br xmlns="" xmlns:fo="http://www.w3.org/1999/XSL/Format" />

Use exclude-result-prefixes attribute in xsl:stylesheet/xsl:transform
 
Cheers,

Jarno - Razed In Black: Disintegration (The Cure cover)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.