This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Document Function




<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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]