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

RE: how to access the main document from a node-set co

Subject: RE: how to access the main document from a node-set context?
From: "Chris Bayes" <chris@xxxxxxxxxxx>
Date: Sun, 23 Dec 2001 03:17:38 -0000
xsl set context
Put <xsl:variable name="root" select="/" /> at the top of your
stylesheet and then refer to the original document with $root/someXpath

Ciao Chris

XML/XSL Portal
http://www.bayes.co.uk/xml


> -----Original Message-----
> From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx 
> [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of 
> Gunther Schadow
> Sent: 23 December 2001 02:34
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  how to access the main document from a 
> node-set context?
> 
> 
> Hi, I have run into another problem with my dependency 
> sorting. Basically what I'm doing is take elements from a 
> document and rearrange them into a result tree fragment. Then 
> I run the node-set funtion on them to get a useful new tree 
> in which I can do Xpath access. Now, I have several links in 
> my generated tree that point into the main document, but when 
> I try to follow them (with key or simple xpath search) I can 
> never access that original document because my context is 
> this generated node-set. How can I reach back to the original 
> document?
> 
> thanks for the hint,
> -Gunther
> 
> 
> -- 
> Gunther Schadow, M.D., Ph.D.                    
> gschadow@xxxxxxxxxxxxxxx
> Medical Information Scientist      Regenstrief Institute for 
> Health Care
> Adjunct Assistant Professor        Indiana University School 
> of Medicine
> tel:1(317)630-7960                         
> http://aurora.regenstrief.org
> 
> 
> 
>  XSL-List info and archive:  
> http://www.mulberrytech.com/xsl/xsl-list
> 
> 


 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.