Re: Using full paths in Calabash p:store

Fun times on Windows:

<p:store name="store-file" encoding="utf-8" method="xml" version="1.0"
omit-xml-declaration="false">
            <!-- This weirdness is to make the path palatable to XProc -->
           <p:with-option name="href"
               select="concat('file:/',
replace(replace(concat($output.dir, '/', $name), '\\', '/'), ' ',
'%20'))"/>
</p:store>

-James

On Thu, Apr 22, 2010 at 1:51 PM, Dave Pawson <dave.pawson@gmail.com> wrote:
> On 22 April 2010 19:48, Norman Walsh <ndw@nwalsh.com> wrote:
>> "HILLMAN, Tomos" <tomos.hillman@oup.com> writes:
>>
>>> Is this an issue in how Calabash treats windows URIs, or is there a
>>> way I should be escaping URIs with spaces in them?
>>
>> Good question. <delete>random rant about spaces in filenames and URIs</delete>
>>
>> I don't see an easy way to encode the spaces without encoding the slashes.
>>
>> Perhaps XML Calabash should be more forgiving in this case...
>
>
> Which could leave more people expecting Windows pathnames to
> be valid URI's?
>
> -1 please.
>
> regards
>
> --
> Dave Pawson
> XSLT XSL-FO FAQ.
> Docbook FAQ.
> http://www.dpawson.co.uk
>
>

Received on Thursday, 22 April 2010 19:00:19 UTC