Debian Codegraph @

examples/exslt-ed

raw
1 #!/bin/sh
2 # Use EXSLT functions
3 echo '<x/>' | ./xmlstarlet ed -O -u /x -x 'date:day-name("2011-09-24")'
4 echo '<x/>' | ./xmlstarlet ed -O -u /x -x 'math:abs(-1000)'
5 echo '<x><n>a</n><n>b</n><n>a</n></x>' | ./xmlstarlet ed -O -u /x -x 'count(set:distinct(/x/*))'