
TARGET=`dirname $1`/_`basename $1`
XSL=`dirname $0`/unimport.xsl
xsltproc -o $TARGET $XSL $1
xsltproc -o $TARGET $XSL $TARGET
xsltproc -o $TARGET $XSL $TARGET
xsltproc -o $TARGET $XSL $TARGET
sed -i -e 's/ xmlns-xmlns-/ xmlns:/g' $TARGET
#lego/tools/prettyxml $TARGET
echo $TARGET
