[xsl] pulling a document with a null namespace into a namespace

Subject: [xsl] pulling a document with a null namespace into a namespace
From: Michael Clark <MClark@xxxxxxxxxxxxxx>
Date: Fri, 8 Aug 2003 10:15:46 -0600
I've tried, I really have, but I can't come up with a solution to this.

Given some document with unknown elements (i.e., I can't enumerate the
elements inside the stylesheet for special processing) in a null namespace:

<random>
	<elements baz="foo">qux</elements>
</random>

Can I use XSLT to process this document and move it into a namespace:

<w:random xmlns:w="http://wibble.com/ns";>
	<w:elements baz="foo">qux</elements>
</w:random>

Thanks for reading!

Michael

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


Current Thread