Elfyn McBratney wrote:

>> I'm wondering whether there is cygwin port of docbook.
>> I want to use it in my office, but I don't wanna bother to
>> install a whole Linux OS just in order to use docbook.
>
> Someone, Me thinks the DocBook maintainer, posted a message to
> [EMAIL PROTECTED] a little while ago saying that he had a mirror that would
> provide this port for a short while. Jump quickly and you might find it ;-)

FWIW, here's a shell script that uses xsltproc to render DocBook XML
into HTML.  You'll need to change the STYLESHEET variable to point at
whatever XML stylesheet you're using.  Invoke this script like this:

        bash$ db2html mydoc.xml


#!/bin/sh
STYLESHEET="$HOME/work2/ldp/xsl/ldp-html.xsl"
TMPFILE="/tmp/db2html.html"

rm -f "$TMPFILE"

xsltproc --output "$TMPFILE" "$STYLESHEET" "$@"

if [ "$OSTYPE" = "cygwin" ]
then
        if [ -f "$TMPFILE" ]
        then
                cygstart "$TMPFILE"
        else
                messagebox db2html "No HTML file produced due to errors!"
        fi
else
        echo "HTML file is $TMPFILE."
fi

exit 0


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

Reply via email to