Re: [xslt] Pull request : xsltproc --fileparam
- From: Vincent Lefevre <vincent+gnome vinc17 org>
- To: The Gnome XSLT library mailing-list <xslt gnome org>
- Subject: Re: [xslt] Pull request : xsltproc --fileparam
- Date: Wed, 17 Jan 2018 15:47:34 +0100
On 2018-01-17 14:40:58 +0100, Nick Wellnhofer wrote:
On 17/01/2018 13:58, Vincent Lefevre wrote:
On 2018-01-17 13:34:07 +0100, Nick Wellnhofer wrote:
Why don't you simply use something like
--stringparam fileparam "$(cat test.txt)"
What if the text is too long for the command line?
I'd argue that xsl:param wasn't meant to handle multi-KB strings.
I'd say that this is unusual, but why not? Is there a limit given
by the standards?
Moreover, $() is lossy as it strips the trailing \n characters.
Not if $() is inside double quotes which prevent Field Splitting.
Field splitting is a different thing.
$ printf "%s" "$(echo a)"
and
$ printf "%s" "$(echo a; echo)"
give the same result.
--
Vincent Lefèvre <vincent vinc17 net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]