$ uname ; echo $SHELL
Linux
/bin/bash
$
$ msg="TWVycnkgQ2hyaXN0bWFzIGFuZCBhIEhhcHB5IE5ldyBZZWFyIDIwMTUhCg=="
$ xmsg="<m>"$msg"</m>"
$ jmsg='{"m":"'$msg'"}'
$
$ echo $xmsg | coproc2 b64.xsl - http://dp2-l3:2223
Merry Christmas and a Happy New Year 2015!
$ echo $msg | coproc2 b64.ffd.xsl - http://dp2-l3:2224
Merry Christmas and a Happy New Year 2015!
$ echo $xmsg | coproc2 b64.xq - http://dp2-l3:2225
Merry Christmas and a Happy New Year 2015!
$ echo $jmsg | coproc2 b64.jsoniq - http://dp2-l3:2226
Merry Christmas and a Happy New Year 2015!
$ echo $jmsg | coproc2 b64.js - http://dp2-l3:2227
Merry Christmas and a Happy New Year 2015!
$
|
b64.xsl:
b64.ffd.xsl:
b64.xq:
b64.jsoniq:
$ diff b64.xq b64.jsoniq
1a2
> declare option jsoniq-version "0.4.42";
33c34
< codepoints-to-string(xf:base64-decode(.))
---
> codepoints-to-string(xf:base64-decode(.("m")))
$
|
b64.js:
Hermann <myBlog/> <myTweets/> | <GraphvizFiddle/> | <xqib/> | <myCE/> <myFrameless/> |