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

RE: omit namespaces

Subject: RE: omit namespaces
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 8 Apr 2005 19:33:09 +0100
xslt omit namespaces
> I have <h1 xmlns=""> tags in the resultant html documents. I 
> want <h1> only.  Not all html tags has the xmlns="" part.
> How are they produced? How can I change it?

They are probably produced because they have a parent element that assigns
the default namespace to something else - look for an xmlns="some.uri" - and
the XSLT processor needs to cancel this namespace declaration in order to
put the h1 elements in the null namespace, which is where you want them.
Look at the code that generates the parent element: do you want this in a
namespace or not?

Michael Kay

Current Thread


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.
First Name
Last Name
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.