XML page cannot be displayed (locally it works)

G

google

Hi all,

Following setup:

- test.xml locally
- test.xsl on an IIS

text.xml contains "<?xml-stylesheet href="http://myserver/xml/test.xsl"
type="text/xsl"?>", but when I open the local test.xml file, IE shows
the following message:
***
Cannot view XML input using XSL style sheet. Please correct the error
and then click the Refresh button, or try again later.


--------------------------------------------------------------------------------

Access denied. Error processing resource
'http://myserver/xml/test.xsl'.
***

I've tried to find a solution in numerous groups, but I couldn't find a
single answer that would help me.

When I change the "href" in the XML file to a local copy of the XSL
file, IE displays everything as it should.

When I change the "href" in the XML file on the server to a server copy
of this file (i.e. just the file name without a path), then IE display
everything okay.

IIS allows anonymous access to the directory and all files within.

IE security settings (for testing) allow everything, including
accessing data sources from different domains.

I don't have the slightest idea what else I should do to overcome this
problem, why can I not just get this to work? I can't use the
workaround that I use embedded XSL stylesheets either, as IE doesn't
support this.

Any help please!?

Regards,

Tim
 
R

Rob ^_^

Hi google,

Both files have to be on IIS as a request to load the test.xml file on IIS
will marshal the embeded xsl file along with the xml file to the client
cache.

Regards.
 
G

Gorgsenegger

Hi again,

I still don't get it - I can't use embedded XSL as Internet Explorer
doesn't support this. But why can't I use a local XML file with a
reference to an XSL file which is on an IIS?

What I want to to in particular is to send an XML file as mail which
then references the XSL file on the server so the mail is displayed
(after the XSL transformation) as HTML in the mailclient.

I don't want to put the XML file on the server and link to it in the
mail, as I would have to open a browser window to see the data
(otherwise I can stay in my mailclient).

Any more ideas?

Thank you

Tim
 
G

Gorgsenegger

Hi again,

I still don't get it - I can't use embedded XSL as Internet Explorer
doesn't support this. But why can't I use a local XML file with a
reference to an XSL file which is on an IIS?

What I want to to in particular is to send an XML file as mail which
then references the XSL file on the server so the mail is displayed
(after the XSL transformation) as HTML in the mailclient.

I don't want to put the XML file on the server and link to it in the
mail, as I would have to open a browser window to see the data
(otherwise I can stay in my mailclient).

Any more ideas?

Thank you

Tim
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top