URL as XSL Reference

W

will

All


A quick question regarding referencing xsl stylesheets from XML..

Up until now i have always refernced a stylesheet using a UNC eg

<?xml-stylesheet type="text/xsl" href="\\lsgpic04\...

Now i am looking at referencing the xsl using a URL eg

<?xml-stylesheet type="text/xsl" href="http://gpmsbic...

however this is failing with access is denied, error processing the
resource (ie the xsl)

So just to confirm .. can URLs be used as the xsl reference within XML?

If this is perfectly acceptable then i guess it could be a permission
issue

Thanks in advance for your help

Will
 
M

Martin Honnen

will wrote:

<?xml-stylesheet type="text/xsl" href="http://gpmsbic...

however this is failing with access is denied, error processing the
resource (ie the xsl)

So just to confirm .. can URLs be used as the xsl reference within XML?

Sure the href is supposed to be a URL and not some UNC path, but
If this is perfectly acceptable then i guess it could be a permission
issue

if you load an XML document with a <?xml-stylesheet>
processing-instruction from a HTTP server then browsers usually with
normal security settings only allow loading a stylesheet from the same
HTTP server e.g. loading http://example.com/example.xml with the href
for the stylesheet pointing to http://example.com/exampleSheet.xml is
fine while the browser won't load a stylesheet from http://example.com/.
 
W

will

Thanks Martin for the swift response

Hmm the xml is on a local shared drive while the xsl is on a web server

This works through xmlspy but not through internet explorer

Any Clues?
 
M

Martin Honnen

will said:
Hmm the xml is on a local shared drive while the xsl is on a web server

This works through xmlspy but not through internet explorer

XML spy is a standalone application that does not impose security
restrictions usually while Internet Explorer is a browser where usually
many things are restricted. If you load the XML from the local file
system and want IE to access the stylesheet on a web server then you
need to configure IE to allow access to data source across domains.
 

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

Members online

No members online now.

Forum statistics

Threads
473,999
Messages
2,570,243
Members
46,836
Latest member
login dogas

Latest Threads

Top