This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: how to access the main document from a node-set context?
- From: Gunther Schadow <gunther at aurora dot regenstrief dot org>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Sat, 22 Dec 2001 22:33:19 -0500
- Subject: Re: [xsl] how to access the main document from a node-set context?
- Organization: Regenstrief Institute for Health Care
- References: <001701c18b60$60a79040$2100a8c0@swiftnet.tec>
- Reply-to: xsl-list at lists dot mulberrytech dot com
Ah, thanks! Good idea!
-Gunther
Chris Bayes wrote:
> 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@lists.mulberrytech.com
>>[mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
>>Gunther Schadow
>>Sent: 23 December 2001 02:34
>>To: xsl-list@lists.mulberrytech.com
>>Subject: [xsl] 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@regenstrief.org
>>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
>
--
Gunther Schadow, M.D., Ph.D. gschadow@regenstrief.org
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