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

Using full paths in Calabash p:store

From: HILLMAN, Tomos <tomos.hillman@oup.com>
Date: Thu, 22 Apr 2010 17:26:40 +0100
To: "xproc-dev@w3.org" <xproc-dev@w3.org>
Message-ID: <04E229667EEBCF4E9A075810ECA4665F2BB2B8AF3C@UKMB02.uk.oup.com>
Hi List,

I'm having issues with Calabash when using p:store in situations like this:

                <p:store name="saveFiles">
                    <p:input port="source">
                        <p:pipe port="result" step="XSLtransform"></p:pipe>
                    <p:with-option name="href" select="concat($output, '/', $fileName)"/>

where $fileName is an xml file name as generated by p:directory-list
and $output is a URI for a directory, e.g:
'file:/U:/xml examples/CMS_Data_Output'

This fails with the message:
Engine name: Calabash XProc
Severity: error
Description:  Illegal character in path at index 12: file:/U:/xml examples/CMS_Data_Output/IC-BT010(1998).xml

This directory format is the same used to supply the argument for the p:directory list, which works fine; however calabash seems to be interpreting the href value as an invalid file name rather than an absolute path - if I replace the @select statement with just $fileName, the results save just fine in the xproc script directory.

Can anyone shed any light on this?

Oxford University Press (UK) Disclaimer

This message is confidential. You should not copy it or disclose its contents to anyone. You may use and apply the information for the intended purpose only. OUP does not accept legal responsibility for the contents of this message. Any views or opinions presented are those of the author only and not of OUP. If this email has come to you in error, please delete it, along with any attachments. Please note that OUP may intercept incoming and outgoing email communications.
Received on Thursday, 22 April 2010 16:27:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:03:06 UTC