You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
356 B

#!/bin/bash
cd $(dirname "$0")
FILE="out.html"
FILE_TMP="tmp.html"
echo "<!DOCTYPE html><html><head><meta charset="utf-8" /><script src=\"https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js\"></script></head><body>" > $FILE
xsltproc -o $FILE_TMP view.xsl examples/$1.xml
cat $FILE_TMP >> $FILE
echo "</body></html>" >> $FILE
rm $FILE_TMP