Re: [xsl] document()

Subject: Re: [xsl] document()
From: "Gabriel K." <gabriel.klappenbach@xxxxxxxxxxxx>
Date: Sun, 7 Nov 2004 16:33:02 +0100
It seems I read your mind twice then, becuase I tried the whole URL as well:
http://gabbah.no-ip.org/mickel/XSL/PC/XML/paths.xml

(the call is made from an xsl file in http://gabbah.no-ip.org/mickel/XSL/PC)

This works fine in a browser, but when used in the document function I STILL get the same error?!
http://gabbah.no-ip.org/test.asp?ctype=System&cdoc=Types&cnMaxRows=10


I guess you can't read the error, because it's in swedish :)
It says "no data available for the resource specified"... grrr...

I'm using an ASP script as you can see.

Thanks for any help, it's much appreciated!

/Gabriel


----- Original Message ----- From: "M. David Peterson" <m.david@xxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, November 07, 2004 4:25 PM
Subject: Re: [xsl] document()




Its like you read my mind :) ;)


Try this... change the declaration to its fully qualified URI (e.g. http://www.mydomain.com/myfolder/myxml.xml) and see if this helps (it should). While the reason behind why this will work (as opposed to just using the standard notation for accessing directories) if this gets you to where you need to be then understanding why is of less importance than the fact that, for now, its solves your problem.
Let me know...


<M:D/>

Gabriel K. wrote:

Perhaps I should add I use MSXML3 on IIS 5, windows XP Pro.

/Gabriel

----- Original Message ----- From: "Gabriel K." <gabriel.klappenbach@xxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Sunday, November 07, 2004 3:59 PM
Subject: Re: [xsl] document()



Hi again.
I wrote wrong before, I DID use single quotes like this:
document('/mickel/XML/xml_file.xml')

Anyway, I have experimented a bit, and neither absolute or relative paths like document('../../XML/xml_file.xml') work!

I seems to only be able to access XML files that reside in THE SAME FOLDER as the XSL file where I call document.

I have even tried putting the XML file in a sub folder instead, and trying document('XML/xml_file.xml')
So the XSL file resides in mickel/XSL/PC and the XML file in mickel/XSL/PC/XML.


And yes, the "mickel" folder is in the web root folder.

I can't understand why I can't access any XML file that is outside of the folder where document is called!
Do you have any idea what could be wrong? The error I get is "The object can't be found". Everything works fine if the XML file resides in the same folder as the XSL file.


/Gabriel

Current Thread