File: exslt-ed

package info (click to toggle)
xmlstarlet 1.6.1-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,656 kB
  • sloc: sh: 4,735; ansic: 4,187; xml: 1,936; makefile: 66; awk: 43
file content (5 lines) | stat: -rwxr-xr-x 261 bytes parent folder | download | duplicates (6)
1
2
3
4
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/*))'