Altova Mailing List Archives>Archive Index >microsoft.public.xsl Archive Home >Recent entries >Thread Prev - transform fails when file location contains space [Thread Next] Re: transform fails when file location contains spaceTo: NULL Date: 2/4/2006 2:28:00 PM Simon wrote: > Somehow I lost the ability to do a transform when the folder that > contains the xml and xsl file contains a space in it. For example, if > bar.xml and bar.xsl are in "c:\foo", and bar.xml contains > <?xml-stylesheet type='text/xsl' href='bar.xsl'?>, the transformation > occurs without a hitch. But if the two files are located in > "c:\foo\space here", I get the dreaded error message from IE: > > The XML page cannot be displayed > Cannot view XML input using XSL style sheet. Please correct the error > and then click the Refresh button, or try again later. > -------------------------------------------------------------------------------- > The system cannot locate the resource specified. Error processing > resource 'file:///C:/foo/space here/bar.xsl'. > > Any thoughts on what's going on here would be appreciated. Perhaps a > setting in IE? Or is there an encoding I could add? All file references in XML/XSL must be URIs. Spaces are invalid in URIs, so you either need to escape them as %20 or avoid using them. In any case, spaces in directory names and filenames are pure evil. They make your teeth rot and your hair fall out, cause nuclear war and planet-wide social upheaval, and make the beer taste funny. ///Peter | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
