Re: [xslt] Suppress namespace in output. Is it possible?
- From: Vincent Lefevre <vincent+gnome vinc17 org>
- To: xslt gnome org
- Subject: Re: [xslt] Suppress namespace in output. Is it possible?
- Date: Tue, 11 Jan 2005 00:41:57 +0100
On 2005-01-10 14:08:41 -0800, Jia Pu wrote:
> I am trying to use xsl:copy a tree to output. It seems that the xslt
> processor will automatically add the xmlns attribute in the output.
> For exmaple, source tree:
> <rule id="Digits">
> will turn into:
> <rule xmlns="http://www.w3.org/2001/06/grammar" id="Digits">
> Is it possible to suppress that behavior so that the output is exactly
> same as the input?
If you want to change the namespace (e.g. from
"http://www.w3.org/2001/06/grammar" to the null namespace),
then you can't say that the output is the same. The XSLT
processor just makes sure that the namespace is correct by
adding the xmlns attribute.
The context (e.g. the default namespace) is important, and you
didn't say anything about it.
Vincent Lefèvre <vincent vinc17 org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA
] [Thread Prev