[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

RE: [xsl] Get path of xsl template


Subject: RE: [xsl] Get path of xsl template
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 20 Jan 2004 12:51:22 -0000

> 
> 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.Elovirta@xxxxxxxxx>
> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
> 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



Current Thread
Keywords