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

RE: Get path of xsl template

Subject: RE: Get path of xsl template
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Tue, 20 Jan 2004 12:51:22 -0000
xslt get path
> 
> 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:  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

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.