xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] omit namespaces


Subject: RE: [xsl] omit namespaces
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 8 Apr 2005 19:33:09 +0100

> 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
http://www.saxonica.com/


Current Thread
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor