summaryrefslogtreecommitdiffstats
path: root/misc/xml/format.sh
blob: c522f449b9ceea5a81a79fa9e48cdfd72292a5ac (plain)
1
2
3
4
5
6
7
8
#! /bin/bash

if [ -z "$1" ]; then
    echo "Usage: $0 [ xml_file ]"
    exit 0
fi

cat $1 | xmllint -format - | xsltproc format.xsl -