[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] document()


Subject: Re: [xsl] document()
From: "M. David Peterson" <m.david@xxxxxxxxxx>
Date: Sun, 07 Nov 2004 07:25:48 -0800

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
Keywords