On Tue, 2019-03-12 at 13:46 +0100, Christian Grün wrote:
> Hi Liam,
>
> Thanks for the enclosed example. I am still trying to figure out how
> to run it, so I tried to simplify everything.
>
> As you can easily guess, my knowledge on XML catalogs is rather
> limited: For example, when trying to r
Hi Liam,
Thanks for the enclosed example. I am still trying to figure out how
to run it, so I tried to simplify everything.
As you can easily guess, my knowledge on XML catalogs is rather
limited: For example, when trying to run the example with fetch:xml, I
noticed that the URI resolution works
As indicated, don’t bind expressions to variables if they yield empty
sequences (here: $o, $o3), and it should be easier to reproduce what’s
happening.
On Tue, Mar 12, 2019 at 12:04 PM Giuseppe G. A. Celano
wrote:
>
> The code is long, because there are many functions. However, I did something
Hi Guiseppe,
actually the file-operations are non-deterministic and thus (1) never executed
out of order and (2) even executed if you would not return their results ($o,
$o2, $o3) and thus might be removed by the compiler.
(Christian might correct me if I am wrong ;-))
I came up with the follo
The code is long, because there are many functions. However, I did something
like the following, and it works:
let $o := file:create-dir("/Users/mycomputer/prova")
let $o3 := file:write("/Users/mycomputer/prova/file2.xml",
(file:write("/Users/mycomputer/prova/file1.xml", "c
Could you attach one of the queries that you mentioned in your first
question (i.e., that didn’t work for you)? We might then be able to
resolve why $o2 seems to take longer than you would expect it to take.
In general, it’s recommendable not to bind code to variables if the
expression does not yi
let $o := file:create-dir("/Users/mycomputer/prova")
let $o2 := file:write("/Users/mycomputer/prova/file1.xml", "ciao")
let $o3 := file:write("/Users/mycomputer/prova/file2.xml",
file:read-text("/Users/mycomputer/prova/file1.xml"))
return
($o, $o2, $o3)
This actually works. In my real example th
Hi Guiseppe,
The following pattern is supposed to / does work:
> file:write("1.txt", "Written to 1.txt"),
> file:write("2.txt", file:read-text("1.txt")),
> "Read from 2.txt: " || file:read-text('2.txt')
Could you maybe elaborate a bit more on your code?
Best from Konstanz
Michael
> Am 12.03
Hi Giuseppe, a little self-contained example would be appreciated!
Best, Christian
On Tue, Mar 12, 2019 at 11:19 AM Giuseppe G. A. Celano
wrote:
>
> Hi
>
> I wrote a single script which should do: write a file -> open this file ->
> write another different file. I put the write expressions in th
Hi
I wrote a single script which should do: write a file -> open this file ->
write another different file. I put the write expressions in the right
sequence, but it seems that the second one cannot happen because the file
created by the first write function has not yet been created at the tim
10 matches
Mail list logo