File: exslt-ed

package info (click to toggle)
xmlstarlet 1.3.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 2,504 kB
  • sloc: sh: 4,313; ansic: 4,268; xml: 1,886; makefile: 56
file content (6 lines) | stat: -rwxr-xr-x 338 bytes parent folder | download
1
2
3
4
5
6
#!/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/*))'
echo '<x>abc</x>' | ./xmlstarlet ed -O -u /x -x 'str:replace(., "b", "BEE")'