From 527c4c3ee082fc29f4703bb3b7b80ff3600ab0e8 Mon Sep 17 00:00:00 2001 From: arjen Date: Thu, 18 Oct 2007 04:25:44 +0000 Subject: [PATCH] New output format for PHPWiki --- wiki.xsl | 156 +++++++++++++++++++++++++++++++++++++++++++++++++++++++ xml2wiki | 30 +++++++++++ 2 files changed, 186 insertions(+) create mode 100644 wiki.xsl create mode 100755 xml2wiki diff --git a/wiki.xsl b/wiki.xsl new file mode 100644 index 0000000..3cabb72 --- /dev/null +++ b/wiki.xsl @@ -0,0 +1,156 @@ + + + + + + + + + +------------------------------------------------------------------ + + + + + + + + + + + + + + + + +********************************************************************************* + +********************************************************************************* + + + + + + + + + + + + + + + Document Information + + + + + : + + + + +Abstract: + + + + + + +!!! + + + +!! + + + +! + + + + + + + + + + + + + + + + + + + + + +<pre> + +</pre> + + + +* + + + +# + + +() + + + () + + + + +__ + +** + +== + +__ + + + + + + + + + + + + + + + + + + + + | + + + + + + + +[] + + + + + + + + diff --git a/xml2wiki b/xml2wiki new file mode 100755 index 0000000..b165d6f --- /dev/null +++ b/xml2wiki @@ -0,0 +1,30 @@ +#!/bin/sh + +XSLDIR=/usr/local/xslt + +stylesheet=$XSLDIR/wiki.xsl +inputs= + +while [ $# -gt 0 ] +do + case $1 in + -s) + stylesheet=$2 + shift + ;; + + -*) + echo Usage: $0 [-s stylesheet] file... + exit 1 + ;; + + *) + inputs=`echo $inputs $1` + ;; + + esac + shift +done +TMPFILE=`mktemp /tmp/xmldoc.XXXXXX` +xp $XSLDIR/preprocess.xsl $inputs >$TMPFILE +xp $stylesheet $TMPFILE -- 2.20.1