[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: problem locating the xsl file

Subject: Re: problem locating the xsl file
From: "ficfic m" <ficfic@xxxxxxxxxxx>
Date: Tue, 08 Feb 2005 14:51:53 +0200
cannot locate the resource specified
about question No. 2:

+ I do you the file:/// prefix in the href
+ the error I get in the case I've described was not correct, the real error I is


"Access is denied. Error processing resource 'file:///C:/MyReports/report.xsl'. "



From: David Carlisle <davidc@xxxxxxxxx>
Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject: Re:  problem locating the xsl file
Date: Tue, 8 Feb 2005 11:37:18 GMT

> 1. Is there a way to tell the browser that if it cannot find the .xsl file
> I've atteched to my xml, then to open the xml without style-sheet ?


No, I don't think so, not using the xml-stylesheet PI.

> if I put in the report.xml the following:
>
> <?xml-stylesheet  type="text/xsl" href="C:/MyReports/report.xsl"?>

That would be wrong, even if it worked.
the href is a uri and the bit before a ":" in a uri is the uor protocol
like http:// or mailto: you should get an "unknown protocl C" error for
that.
the URI should be file:///C:/MyReports/report.xsl"
Although I see from the error message you report:

> "The system cannot locate the resource specified. Error processing resource
> 'file:///C:/MyReports/report.xsl'. "


your system automatically translated to teh file:/// protocol you should
not rely on that.

If you are loading the xml file directly from the file system (eg by
double clicking on it) I would have expected that the link worked,
although if they are in the same directory, why not just use
<?xml-stylesheet  type="text/xsl" href="report.xsl"?>


David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


_________________________________________________________________
FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.