This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is there cygwin port of docbook?


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]