On 17 January 2018 at 12:34, Nick Wellnhofer <wellnho...@aevum.de> wrote:

> On 15/01/2018 22:50, Edouard Tisserant wrote:
>
>> I added a --fileparam switch to xsltproc command line to enable loading
>> file content as stylesheet parameter string literal. It also enhance
>> --stringparam as a side effect. I hope you'll find this useful.
>>
>
> $ xsltproc --param param "2+3" --stringparam stringparam "2+3"
>> --fileparam fileparam test.txt test.xsl test.xml
>> <?xml version="1.0"?>
>> <param>5</param><stringparam>2+3</stringparam><fileparam>Hello World
>> </fileparam>
>>
>
> Why don't you simply use something like
>
>     --stringparam fileparam "$(cat test.txt)"
>
>
Maybe it isn't invoked from a shell (perhaps fork, exec rather than system,
popen), and maybe it isn't invoked under unix anyway.

Sam


> Nick
>
>
> _______________________________________________
> xslt mailing list, project page http://xmlsoft.org/XSLT/
> xslt@gnome.org
> https://mail.gnome.org/mailman/listinfo/xslt
>
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
xslt@gnome.org
https://mail.gnome.org/mailman/listinfo/xslt

Reply via email to