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

Re: omit namespaces

Subject: Re: omit namespaces
From: david_n_bertoni@xxxxxxxxxx
Date: Fri, 8 Apr 2005 11:30:27 -0700
omit xmlns
> > 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 produced when the serializer determines that a default namespace 
binding exists, but the "h1" element has an empty namespace URI.  In 
particular, the parent element (or some other ancestor element) was 
created with a non-empty namespace URI.

> > 
> >
> if your namespaces are coming from stylesheet then use
> exclude-result-prefixes
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>           version="1.0"
>           exclude-result-prefixes=""?>

You mean:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

But even that won't work, since the namespace declaration in question is 
undeclaring the default namespace, not declaring it.

You need to show your input document and stylesheet if you want more 


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.