aboutsummaryrefslogtreecommitdiff
path: root/test/pddp/toonepage
diff options
context:
space:
mode:
authorN.N. <krzyszcz@users.sourceforge.net>2005-05-10 20:30:47 +0000
committerN.N. <krzyszcz@users.sourceforge.net>2005-05-10 20:30:47 +0000
commit2f98cf610081a6e3c4a4aadf4411dcc89b756db2 (patch)
tree282ed3657a8050ad790570dec4263fff67272f6b /test/pddp/toonepage
parentcdd23c6b9523654eb3bf03542021404888fdbcba (diff)
toxy alpha17 and pddp alpha1 (see notes.txt for toxy, pddp and shared)
svn path=/trunk/externals/miXed/; revision=2941
Diffstat (limited to 'test/pddp/toonepage')
-rwxr-xr-xtest/pddp/toonepage21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/pddp/toonepage b/test/pddp/toonepage
new file mode 100755
index 0000000..f59273a
--- /dev/null
+++ b/test/pddp/toonepage
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+usage () {
+ cat << EOF
+usage: toonepage <pddpsource>.xml
+EOF
+}
+
+[ "$#" == 0 ] && { usage; exit 1; }
+
+SOURCE_NAME="$(basename $1)"
+SOURCE_STUB="$(basename $SOURCE_NAME .xml)"
+
+[ $SOURCE_STUB == $SOURCE_NAME ] && { usage; exit 1; }
+
+xmllint >/dev/null --xinclude --postvalid $1
+xsltproc --nonet --xinclude \
+ --stringparam html.stylesheet pddp.css \
+ -o "$SOURCE_STUB.html" \
+ /usr/share/xml/docbook/stylesheet/nwalsh/html/docbook.xsl \
+ $1