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.
Moreover, $() is lossy as it strips the trailing \n characters.
Not if $() is inside double quotes which prevent Field Splitting.
The best solution is probably to implement an extension function similar to
`unparsed-text` from XSLT 2.0.
Nick
_______________________________________________
xslt mailing list, project page http://xmlsoft.org/XSLT/
[email protected]
https://mail.gnome.org/mailman/listinfo/xslt