Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
To: cygwin@cygwin.com
From: Francis Litterio <franl@world.std.com>
Subject: Re: Is there cygwin port of docbook?
Date: Tue, 11 Feb 2003 07:57:43 -0500
References: <20030211180619.21cc31f1.imaq@21cn.com>
	<00ee01c2d1c4$7ad04560$15fe86d9@webdev>
In-Reply-To: <00ee01c2d1c4$7ad04560$15fe86d9@webdev> ("Elfyn McBratney"'s
 message of "Tue, 11 Feb 2003 11:55:27 -0000")
Message-ID: <uu1fbm0jx.fsf@world.std.com>
Lines: 38
User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2
 (i386-msvc-nt5.0.2195)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii

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/

