xsl-list
[Top] [All Lists]

Re: [xsl] Iterating recursivly on a node changing the element names

2007-11-21 07:46:33
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 


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--