![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: ASP and XML/XSL error >Thread Next - Re: ASP and XML/XSL error Re: ASP and XML/XSL errorTo: NULL Date: 1/2/2005 8:01:00 PM "Martin Honnen" wrote in message
news:eHFppj17EHA.2788@T......
: Roland Hall wrote:
: > Ok, I finally figured this out. For some reason it was looking in the
wrong
: > folder. All the examples I have seen never said it was a physical path.
: > I've modified the ASP code and now my document transforms.
: >
: > <%@ Language=VBScript %>
: > <%
: > Option Explicit
: > Response.Buffer = True
: >
: > sub loadXMLFile(strXMLFile, strXSLFile)
: > dim objXML, objXSL, xmlFile, xslFile, strPath
: > strPath = Request.ServerVariables("APPL_PHYSICAL_PATH")
: > xmlFile = strPath & mid(Replace(strXMLFile,"/","\"),2)
: > xslFile = strPath & mid(Replace(strXSLFile,"/","\"),2)
:
: It probably suffices to use
: Server.MapPath(strXMLFile)
In this example, yes, but my datafiles will not be beneath the web root.
I'm wondering why all the examples I saw just showed the filename. When I
actually saw what it was pointing to it was %systemroot%\system32 something.
If I have two files, same name, different folder, which one will be found
first using Server.MapPath? Does it look alphabetically or does it look at
an unsorted list as to when the folders were created?
I understand I can add the path or partial but then what is the point of
searching?
--
Roland Hall
/* This information is distributed in the hope that it will be useful, but
without any warranty; without even the implied warranty of merchantability
or fitness for a particular purpose. */
Technet Script Center - http://www.microsoft.com/technet/scriptcenter/
WSH 5.6 Documentation - http://msdn.microsoft.com/downloads/list/webdev.asp
MSDN Library - http://msdn.microsoft.com/library/default.asp
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||||
|
