Re: [xsl] namespace generation in the output.

Subject: Re: [xsl] namespace generation in the output.
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 31 May 2005 20:56:38 +0100
Dave, in your case the namespace seems to be statically known in the
stylesheet so usually you don't need to do this copying trick, which is
only normally needed if you need to generate the namespace uri
dynamically. 

I can't really tell as the snippet you posted isn't well formed, but for
example if you know what element xsl:copy is copying as you know which
element is being matched, then you can simply replace xsl:copy with a
literal result element that has the needed namespace decln.

When you do need to dynamically generate a namespace declaration xslt2
has an xsl:namespace instruction that works like xsl:attribute, but for
namespaces.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

Current Thread