Hi Tom, I agree, this is how I understand it as well. Since XSLT 1.0 does not allow the user to set the base URI (XSLT 1.1 has a proposed xsl:base), I am assuming the base URI points to the same directory that the stylesheet .XSL file is in. However, this does not end up being the case for my code. I am not sure why, and have not had the time to look at the problem in depth to see if it is associated with the <cf_xmltransform ...> tag or MSXML itself.
A Google search has shown me that a few other people have had this problem with other tools, and thus the change for XSLT 1.1. For now I am sending the URI as a paramter, unless someone out there has a better solution. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of tom dyson Sent: Thursday, July 11, 2002 12:41 PM To: [EMAIL PROTECTED] Subject: Re: [cf-xml] Finding the current execution path for thedocument() function Hi Chris, As I understand it, the document() function uses the base URI of the XSLT stylesheet to work out relative location paths, if an absolute path is not specified. Does this work for you? Tom > Hi all, > > I am using the <cf_xmltransform ..> tag and find I am having a problem with > the document() function in my .XSL file. > > I am using <xsl:value-of select="document('t_look.xml')/lookups" /> statement, > but find it only works properly if I use the full path for the target xml > file, even though t_look.xml is in the same folder as the stylesheet .XSL. > > Does anyone know a method to find what location the document() function is > using for its base when no path is specified? I would really like to use > relative paths in my solution. -----------------+ tom dyson t: +44 (0)1608 811870 m: +44 (0)7958 752657 http://torchbox.com -----------------------+ cf-xml mailing list http://torchbox.com/xml/list.cfm -----------------------+ cf-xml mailing list http://torchbox.com/xml/list.cfm
