[xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?
2006-10-16 16:59:13
Hi List,
I want to retrieve the name of the xslt file that is currently
processing something for purposes of logging and tracing.
In XSLT 1.0 you could do document('') to retrieve the xslt stylesheet
document itself, and as a result you could do some funny things
transforming oneself. In XSLT 2.0, there is resolve-uri() and
document-uri(), the second of which takes a document or node as
reference, but it is not possible to use document('') (with empty
string) to refer to the current xslt file, it will throw an error. Is
there a way to get the current xslt file with XSLT 2.0?
Suppose there is a way, will that method be interfered by a possible
xml:base on the xsl:stylesheet element? With XSLT 1.0, it has the effect
that document('') tries to find a (?) document at the level of the
xml:base attribute.
Any ideas are welcome. Thanks in advance.
Cheers,
-- Abel Braaksma
http://www.nuntia.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>
--~--
<Prev in Thread] |
Current Thread |
[Next in Thread>
|
- [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?,
Abel Braaksma <=
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Dimitre Novatchev
- RE: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Michael Kay
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Andrew Welch
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Abel Braaksma
- RE: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Michael Kay
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Andrew Welch
- RE: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Michael Kay
- Re: [xsl] Referring to stylesheet itself, possible in XSLT 1.0, but how in XSLT 2.0?, Andrew Welch
|
|
|