Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > URL as XSL Reference

Reply
Thread Tools

URL as XSL Reference

 
 
will
Guest
Posts: n/a
 
      09-02-2005
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

 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      09-02-2005


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/.

--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
 
will
Guest
Posts: n/a
 
      09-02-2005
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?

 
Reply With Quote
 
Martin Honnen
Guest
Posts: n/a
 
      09-02-2005


will wrote:

> 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.

--

Martin Honnen
http://JavaScript.FAQTs.com/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
XSL Question tp xsl:for-each and xsl:variable schaf@2wire.ch XML 1 05-27-2005 09:25 PM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 1 09-13-2004 02:28 PM
XSL-1000: (Fatal Error) Error while parsing XSL file (org.apache.xerces.parsers.AbstractSAXParser$AttributesProxy) Kevin Flood Java 0 09-08-2004 02:11 PM
URL - substitution of a correct URL by a GUID like URL in favorites. Just D. ASP .Net Mobile 0 08-11-2004 04:26 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM



Advertisments