Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: browsing xml/xsl files on a pc not connected to the web [Thread Next] Re: browsing xml/xsl files on a pc not connected to the webTo: 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 | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
