[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
|