xsl-list
[Top] [All Lists]

RE: Access Root Node from namespaced node

2004-09-21 22:42:04
Hi,

Decalre a global variable.

<xsl:variable name="root" select="/" />

And use this variable

<xsl:template match="$root">


Cheers.

Arun


From: "Karl J. Stubsjoen" <karl(_at_)meetscoresonline(_dot_)com>
Reply-To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Subject: [xsl] Access Root Node from namespaced node
Date: Tue, 21 Sep 2004 21:12:04 -0700

Hello,

I can't access the root node.  I am within this named node mso:steps (a
little XML collection within my stylesheet) and need to call out to the root
node but am stuck!  How can I access the root node?

This:
<xsl:apply-templates select="/"/>

Within this template rule:
<xsl:template match="mso:steps/mso:step">

Just gets me back to top level of mso:steps source and not the root source
for the stylesheet.

Karl


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


_________________________________________________________________
The new MSN toolbar! Your shortcut to the internet! http://toolbar.msn.co.in/ Access a world of convenience!



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