view update-xml-to-html.sh @ 368:0416ede8f5c8 misc

Update Convent of White Rose map a bit.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 10 Feb 2024 01:50:24 +0200
parents 32a5a3a88f0a
children c3ab8a10dacb
line wrap: on
line source

#!/bin/sh
XML="$1"
HTML=`echo "$XML"|sed "s/\.xml$/.html/"`
echo "Converting $XML to $HTML ..."
xsltproc --stringparam html.stylesheet "/~ccr/ggrtf/html/manual.css" \
	--output "$HTML" \
	/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/docbook.xsl "$XML" &&	\
	tidy -w 200 -utf8 -asxhtml -i -m "$HTML"

if test -e "$HTML"; then
	scp "$XML" "$HTML" ccr@tnsp.org:public_html/bat/
fi