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

RE: Root when the current node is part of Parameter Re

Subject: RE: Root when the current node is part of Parameter Result TreeFragement/Nodelist
From: "Colin Toal" <colin_toal@xxxxxxxxxxx>
Date: Tue, 09 Mar 2004 19:35:20 -0500
colin toal
From: "Josh Canfield" <Josh.Canfield@xxxxxxxxxxxx>

>> The problem is that - within the context of the ParamColour matching
>> template, the key object doesn't seem to be defined - in fact, even root of


Actually, I believe the key is defined, it just doesn't match anything in the current document. When you call apply-templates on your parameter node you are changing the current document to that of the parameter.


You could save the root node in a global variable. <xsl:variable name="docRoot" select="/"/>


This is the solution that will suit me most generally.


Thanks for your help,
Colin

_________________________________________________________________
Add photos to your messages with MSN Premium. Get 2 months FREE* http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU=http://hotmail.com/enca&HL=Market_MSNIS_Taglines



XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



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.