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

RE: HELP! XT is putting namespaces in output tag attributes

Subject: RE: HELP! XT is putting namespaces in output tag attributes ...
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Fri, 28 Jan 2000 09:38:40 -0000
xslt suppress namespace in output
> > Some of my output tags are getting the stylesheet namespace 
> added in their
> > 
> > <aTag  xmlns:enabler="<http://www.jclark.com/xt/java/XSLEnabler>"
> > xmlns="<http://www.w3.org/TR/REC-html40>">...</aTag>

Not with the angle brackets in the URI, surely?

> > 
> > some other tags are just getting this one :
> > 
> > <aTag2 xmlns=""></aTag2>
> > 
> >  Why is it doing this ?

When you copy a literal result element to the result tree, all its namespace
nodes are copied too, unless you ask for them not to be. This is what's in
the spec, if you want to know why it's in the spec, don't ask me!

> > 
> >  How can I get it not to do this  ?

I can't answer for what's currently in xt, but in standard XSLT, you can
suppress a namespace from
the output by specifying exclude-result-prefixes="enabler" on the
xsl:stylesheet element, or by designating it as an extension namespace using

SAXON supports both these features :-)

Mike Kay

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

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.