Oxygen XML Editor
 
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Setting variable to namespace prefix


Subject: Re: [xsl] Setting variable to namespace prefix
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 30 Jan 2007 21:43:37 GMT

    <xsl:if test="(.)=(../../@targetNamespage)">
                                         ^^^^^

but you don't need to loop through like that, just select the one you
want

<xsl:variable name="ns-prefix"
select="name(namespace::node()[.=/*/@targetNamespace])"/>

David


Current Thread
 
© 2002-2008 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy
This website was created & generated with <oXygen/> XML Editor