xsl-list
[Top] [All Lists]

RE: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?

2006-10-17 01:22:05
but it is not possible [in 2.0] to use document('') (with empty
string) to refer to the current xslt file, it will throw an 
error. 

Don't know where you got that idea. So long as the base URI of the
stylesheet module is known, and is accessible in the run-time environment,
document('') should retrieve it.

You can also find out the base URI of the stylesheet module more directly
using the static-base-uri() function.

Michael Kay
http://www.saxonica.com/


--~------------------------------------------------------------------
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>
--~--