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

Re: Referring to stylesheet itself, possible in XSLT 1

Subject: Re: Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Tue, 17 Oct 2006 15:29:45 +0200
Re:  Referring to stylesheet itself
David Carlisle wrote:
Incidentally, why do you want to use document('')??

No reason in particular, other than getting the stylesheet that is currently being executed. I tried all sorts of ideas and combinations of ideas, but the result is simple: it cannot be done once you have the xsl:stylesheet offset to some directory where your current stylesheet does not reside.


So, if your stylesheet uses something like this:
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0" xml:base="../..">


but is itself not at location "../..", all bets are off for getting the location of the current stylesheet.

-- Abel

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.