Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: transform fails when file location contains space

From: Peter Flynn <peter.nosp@-.--------.-->
To: 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


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