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

Re: Getting the current document from an xsl:function

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

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.