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

RE: namespace change, what am I missing here?

Subject: RE: namespace change, what am I missing here?
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Mon, 30 Jun 2003 11:42:19 -0500
> I've got a stylesheet renamespace.xsl, that is intended to take an 
> arbitrary XML file and change the namespace (no matter what 
> it is) into 
> an arbitrary new namespace. It's based on the FAQ. Both the 
> location of 
> the file and the new namespace are parameters. But when I run it 
> through my script (it's all below) I get the namespace applied to all 
> the child nodes but NOT the root node. Why not??

A minor point, but: I believe you mean "but NOT the document node."
The root node can never have a namespace.

> (i'm also not sure where the "ns2" is from but that doesn't matter to 
> me.)

You asked for those elements to be put in a certain namespace;
you provided the namespace-URI, but XSLT needed a prefix to apply
the new namespace to the result elements, so it generated one.

Sorry, I don't have an answer to your question; I assume Dimitre's


 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.