Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: ASP and XML/XSL error

From: "Roland Hall" <nobody@------->
To: 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




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent