xsl-list
[Top] [All Lists]

RE: Get path of xsl template

2004-01-20 05:51:22

I'm a little puzzled.  How can the XSL processor not know 
where the template is yet it can resolve relative urls?

Good question. The XSLT processor does know the base URI of every XPath
expression in the stylesheet. But this information isn't available to
the user in XSLT 1.0. In 2.0, there is a base-uri() function to obtain
it.

Michael Kay



Surely, there must be some function that states the path of 
the xsl template is blah?

TIA for any insight you can provide into this?

Mark

----- Original Message -----
From: <Jarno(_dot_)Elovirta(_at_)nokia(_dot_)com>
To: <xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com>
Sent: Tuesday, January 20, 2004 10:19 AM
Subject: RE: [xsl] Get path of xsl template


Hi,

Is there an  xsl function for obtaining the path of an xsl template 
and then parsing that path into its various directory names.

No.

Does anyone please have an example of how to do this.

Pass the information using xsl:param or with an external 
source tree accessed using document().

Cheers,

Jarno - Wumpscut: Mother (Maternal Instinct)

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list



<Prev in Thread] Current Thread [Next in Thread>