view update-xml-to-html.sh @ 374:10d030b85117 misc tip

Switch Convent map to SVG version, add link to PNG render to the caption.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 01 Mar 2024 10:02:38 +0200
parents c3ab8a10dacb
children
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 "$HTML" ccr@tnsp.org:public_html/bat/
fi