xsl-list
[Top] [All Lists]

Re: Retriving attribute value using variable.

2005-08-21 23:59:41
"Arul" == Arulraj  <p_arulraj(_at_)yahoo(_dot_)com> writes:

    Arul> sorry, this String value comes from the another XML file.
    Arul> <xsl:variable name="searchAttribute"><xsl:value-of
    Arul> select="$FormatTmp/OODesign/format/@value"/></xsl:variable>


OK.
Provided the xsl:variable declaration is at the top-level of the
(presumed) xsl:stylesheet/xsl:transform, then you simply xsl:include
the file into your main xsl:stylesheet/xsl:transform.
Global variables declared in any stylesheet module are available to
all stylesheet modules.
-- 
Colin Adams
Preston Lancashire

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