Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: browsing xml/xsl files on a pc not connected to the web

From: "Joe Fawcett" <joefawcett@---------.------>
To: NULL
Date: 1/27/2009 1:09:00 PM
"Martin Honnen" <mahotrash@y...> wrote in message 
news:ue6bNNHgJHA.5408@T......
> me wrote:
>> Is it possible to view xml/xsl files on a standalone PC (ie one with no 
>> internet connectivity)?
>>
>> Specifically,
>>     my xml file references my xsl file, and
>>     my xsl file contains the standard xsl stylesheet tag :-
>>         <xsl:stylesheet version="1.0"
>>           xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>>
>> The absence of internet connectivity causes this access to http:// to 
>> give an error.
>
> No, xmlns:xsl="http://www.w3.org/1999/XSL/Transform" is simply a namespace 
> declaration, the XML parser will not try to access that URL at all.
>
> On the other hand, if you have e.g.
>
> <?xml-stylesheet type="text/xsl" href="http://example.com/sheet.xsl"?>
>
> then that stylesheet could be fetched from http://example.com/.
>
>
>
>
> -- 
>
> Martin Honnen --- MVP XML
> http://JavaScript.FAQTs.com/
As an addition to Martin's comments if you use relative references/URLs for 
your linked XSLT, e.g.: <?xml-stylesheet type="text/xsl" 
href="example.com/sheet.xsl"?>
then your XSLT just needs to be in the same folder as the XML and you can 
open the XML locally by double-clicking it.

-- 

Joe Fawcett (MVP - XML)

http://joe.fawcett.name




transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent