This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Document Function
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: [xsl] Document Function
- From: David Carlisle <davidc at nag dot co dot uk>
- Date: Mon, 29 Jan 2001 19:34:48 GMT
- References: <F198LDp7mvjkO22ZhCl00002b5d@hotmail.com>
- Reply-To: xsl-list at lists dot mulberrytech dot com
<xsl:variable name = "temp" select = Document('C:\Sample\Emp.xml')/>
the argumement to Document is supposed to be a URI not a file path
so that isn't supposed to work. Also it is document() not Document()
and there are quotes missing around the select attribute.
> I also tried
> <xsl:variable name="temp" select = Document'file:///C:/Sample/Emp.xml')/>
If you lowercase the D and put the quotes and ( in the right place, this
is suppsed to work. I assume you did that (not what you'd posted)
otherwise you'd get an XML parse error.
Otherwise it might be that the error is telling the truth (that your
server doesn't have access to the file)
David
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list