Re: The file name for the output of an xsl:result-document

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12/17/2013 12:18 AM, Geert Josten wrote:
> Can you show the lines where you invoke pxf:cwd()? Sounds like there is a
> typo somewhere..

Indeed, I must have had a typo the first time since now I'm getting a different error. I set up the test again here: 

http://pastebin.com/aT49bVzM

and now get the following, more promising error that it can't find a function named cwd. Perhaps I'm using the wrong namespace? I've also tried mapping pxf to the namespaces http://exproc.org/proposed/steps/os and http://xmlcalabash.com/ns/extensions/fileutils and get a similar error with them. 

dcramer@anatine ~/rax/published/auth-git/auth-doc-2.0/src/wadl/normalized (master)
$ calabash -i "source=../RAX-AUTH.wadl" ~/rax/wadl-tools-dwcramer/wadl2json.xpl 
Dec 17, 2013 10:16:55 AM com.xmlcalabash.util.DefaultXProcMessageListener error
SEVERE: file:/home/dcramer/rax/wadl-tools-dwcramer/wadl2json.xpl:6:61:err:XD0023:Cannot find a matching 0-argument function named {http://exproc.org/proposed/functions}cwd()
Dec 17, 2013 10:16:55 AM com.xmlcalabash.drivers.Main error
SEVERE: It is a dynamic error if an XPath expression is encountered which cannot be evaluated (because it is syntactically incorrect, contains references to unbound variables or unknown functions, or for any other reason).

Thanks,
David

> 
> Cheers,
> Geert
> 
>> -----Oorspronkelijk bericht-----
>> Van: David Cramer [mailto:david@thingbag.net]
>> Verzonden: maandag 16 december 2013 23:44
>> Aan: xproc-dev@w3.org
>> Onderwerp: Re: The file name for the output of an xsl:result-document
>>
> On 11/11/2011 07:08 AM, Norman Walsh wrote:
>>>> It's also common (at least common for me) to want the output files
>>>> to go in the "current directory", the directory where I ran XML
>>>> Calabash, not in a directory relative to the source document. For
>>>> that you need basically the same technique, but you have to resolve
>>>> against the URI returned by pxf:cwd()[1].
> 
> Does anybody have a working example of pxf:cwd they could poing to? I
> tried it, but must be doing it wrong. I get:
> 
> "SEVERE: It is a dynamic error if an XPath expression is encountered
> which cannot be evaluated (because it is syntactically incorrect,
> contains references to unbound variables or unknown functions, or for
> any other reason)."
> 
> Thanks,
> David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.14 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/

iQEcBAEBAgAGBQJSsHwiAAoJEMHeSXG7afUhEzwH/iBrSzkKIpYWIn2/Ww3xajE3
SkyiOJeCOQFqtMOg2OcoS3eBIHfqolpAuwGc629VhC+iwTEuOGZyTjZOR7mw3X6G
xYON1wFhdNzIk3E4OZ/we7bRu9T+m28b9NvCIphL5rUxTofnH0mWGUQERN4vq7mU
X334HaQtmOrUZKtGskKUo2mpEXjUhNH7rox1iNDGykj7T/Z7ESsZFEny+y2dsvpU
YQXC2LdJTYn0p4wvmbvrgtWfQ7AXw0u5qMNvSBqij3oPKttsUNTHiNi5CSaZb1hJ
NA+xSD8zvom97UUIIhW9Om9o7AVl+qGAZFX79Ws4Fv3w1Ghp+5EJK8GeLFB6xWM=
=9+vO
-----END PGP SIGNATURE-----

Received on Tuesday, 17 December 2013 16:31:06 UTC