|
Subject: Re: [xsl] Iterating recursivly on a node changing the element names From: Florent Georges <lists@xxxxxxxxxxxx> Date: Wed, 21 Nov 2007 15:45:57 +0100 (CET) |
Scott Trenda wrote:
> Alternately:
> <xsl:element name="{local-name()}" namespace="yourNamespaceURI">
That's not exactly the same thing. With Andrew's solution, the
result element will use the prefix "nsprefix" (provided the prefix is
actually bound in the scope of the xsl:element). With yours, the
element will have no prefix (so the default namespace would be
bound/rebound to the provided URI).
A third solution, instead of binding the prefix in the scope of the
while stylesheet, could be the following (the prefix is set within
@name, and the URI is set within @namespace) (all depend on the OP's
choices and taste):
<xsl:element name="nsprefix:{ local-name() }"
namespace="yourNamespaceURI">
Regards,
--drkm
_____________________________________________________________________________
Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| RE: [xsl] Iterating recursivly on a, Scott Trenda | Thread | Re: [xsl] Iterating recursivly on a, G. Ken Holman |
| Re: [xsl] xsl:for-each-group Proble, Florent Georges | Date | Re: [xsl] Iterating recursivly on a, ML mail |
| Month |