xsl-list
[Top] [All Lists]

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

2012-06-28 04:37:51
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(_dot_)online(_at_)xs4all(_dot_)nl> 
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)


--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--