W3C home > Mailing lists > Public > xproc-dev@w3.org > April 2010

Re: Using full paths in Calabash p:store

From: James Sulak <jsulak@gmail.com>
Date: Thu, 22 Apr 2010 13:59:25 -0500
Message-ID: <s2g7cb78b3b1004221159n2d3cc266ndf8ed28d7a9ee791@mail.gmail.com>
To: Dave Pawson <dave.pawson@gmail.com>
Cc: Norman Walsh <ndw@nwalsh.com>, XProc Dev <xproc-dev@w3.org>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 22 April 2010 19:00:20 GMT