xsl-list
[Top] [All Lists]

Re: [xsl] Setting variable to namespace prefix

2007-01-30 14:44:59

    <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

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

<Prev in Thread] Current Thread [Next in Thread>