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: Absolute paths in document() function under MSXML3 SP1




> Hey guys, 
> 
> I have a situation where I generate a string that is an 
> absolute URL. I'm
> using this string to load an external XML document for 
> processing using
> document().
> 
> When I'm developing my XSL, I use Stylus Studio. I ran my XSL 
> transform
> through their processor and MSXML and in both instances, the transform
> worked fine, exactly as I had expected. However, when I went 
> to use the
> transform from an ASP page, I ran off of the same system I 
> develop from, I
> got the following error:
> 
> Error Type:
> msxml3.dll (0x80004005)
> Error while parsing "http://adam/component/FlashDataNav.xml";. 
> No data is
> available for the requested resource. 
> /config.asp, line 104
> 
> {line 104 is the transform() line)
> 
> No the only problem with that is 
> http://adam/component/FlashDataNav.xml
> loads quite nicely from IE so the file exists and its valid XML. 
> 
> I'm using an MSXML2.IXSLProcessor to do the transformation.
> 

Probably what is happening is that IE is requesting the file
using http from the server but your asp is running the processor
directly and tries to load the .asp from the root of your local
hard disk. Also it won't actually run the asp file as you'll need
to tear it off with some other component and point the document()
at that with a disk reference. If you have the file you're loading
as a xsl:parameter you can change it when running on the server
for the asp page.

Hope this helps.

-- 
Richard(Slow,Cr*p and ShitScared(TM))Mitchell
GPz500S 34Mm /mnt    JH125B 23Mm /tmp 

 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]