What does the document() function do for you?

-----Original Message-----
From: tom dyson [mailto:[EMAIL PROTECTED]]
Sent: Thursday, July 11, 2002 11:41 AM
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

Reply via email to