diff options
Diffstat (limited to 'examples/exslt-ed')
-rw-r--r-- | examples/exslt-ed | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/examples/exslt-ed b/examples/exslt-ed new file mode 100644 index 0000000..21069f0 --- /dev/null +++ b/examples/exslt-ed @@ -0,0 +1,5 @@ +#!/bin/sh +# Use EXSLT functions +echo '<x/>' | ./xmlstarlet ed -O -u /x -x 'date:day-name("2011-09-24")' +echo '<x/>' | ./xmlstarlet ed -O -u /x -x 'math:abs(-1000)' +echo '<x><n>a</n><n>b</n><n>a</n></x>' | ./xmlstarlet ed -O -u /x -x 'count(set:distinct(/x/*))' |