[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: Access Root Node from namespaced node

Subject: RE: Access Root Node from namespaced node
From: "Arun Sinha" <arunsinha666@xxxxxxxxxxx>
Date: Wed, 22 Sep 2004 05:42:04 +0000
xsl root node
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@xxxxxxxxxxxxxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Subject:  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


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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.