Re: [xsl] question on paths

Subject: Re: [xsl] question on paths
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 27 May 2010 00:12:24 +0100
On 27/05/2010 00:07, I wrote:
this appears to be identical to your first question, you can not
evaluate / in a function body you need
<xsl:sequence selct="root($x)/n1:Document/n1:recordTarget/n1:patientRole"/>

where $x is a parameter to your function, and when you call the function
you need to pass in a node.

or if you only have one document of interest, $x need not be a parameter to the function it can be a global variable defined at the top level of the stylesheet to be (say) the root of the input document.



David


Current Thread