[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Getting the current document from an xsl:function


Subject: Re: [xsl] Getting the current document from an xsl:function
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Thu, 28 Jun 2012 11:37:34 +0200

I knew I was forgetting the obvious! I used it so often in the passed
but today I just couldn't see it... Thanks Andrew for clearing my head!

Abel


On 28-6-2012 11:26, Andrew Welch wrote:
> On 28 June 2012 10:12, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
>> Hi Andrew,
>>
>> The current dir of the currently executing stylesheet. Every
>> xsl:function is contained in a stylesheet and the currently executing
>> main stylesheet is also known, so theoretically this "context" should
>> (could) be available.
> document-uri('')
>
> ...will give you the path of the stylesheet, provided the processor
> knows it (if the xslt was loaded from a stream it might not)


Current Thread
Keywords