This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: Is there cygwin port of docbook?
- From: Francis Litterio <franl at world dot std dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 11 Feb 2003 07:57:43 -0500
- Subject: Re: Is there cygwin port of docbook?
- References: <20030211180619.21cc31f1.imaq@21cn.com><00ee01c2d1c4$7ad04560$15fe86d9@webdev>
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
> cygwin@cygwin.com 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/