#!/bin/sh # Use EXSLT functions echo '' | ./xmlstarlet ed -O -u /x -x 'date:day-name("2011-09-24")' echo '' | ./xmlstarlet ed -O -u /x -x 'math:abs(-1000)' echo 'aba' | ./xmlstarlet ed -O -u /x -x 'count(set:distinct(/x/*))'