This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
RE: How to customize DOCBOOK DSSSL for a Web Site
- To: "'docbook at lists dot oasis-open dot org'" <docbook at lists dot oasis-open dot org>
- Subject: RE: DOCBOOK: How to customize DOCBOOK DSSSL for a Web Site
- From: "Cropley, Scott A - TOT-DITT2" <sacropley at bpa dot gov>
- Date: Wed, 14 Jun 2000 07:33:34 -0700
- Reply-To: docbook at lists dot oasis-open dot org
Does this Webbook DTD Exist?
-----Original Message-----
From: Gary Lawrence Murphy [mailto:garym@canada.com]
Sent: Monday, June 12, 2000 7:56 AM
To: docbook@lists.oasis-open.org
Subject: Re: DOCBOOK: How to customize DOCBOOK DSSSL for a Web Site
>>>>> "P" == Philippe CASIDY <pcasidy@worldnet.fr> writes:
P> Hi! I am wondering how DOCBOOK can be used to publish a web
P> site.
You probably do not want to do this; DocBook is for publishing tech
docs, not websites. For website you'd want to have a new DTD called
WebBook ;)
That said, it is not impossible, but it really means you are headed
for slowly replacing each and every element handler in DocBook until
you have replaced almost the whole thing. That's the key: You see an
element you don't like, you track down the definition in the DSL
files, replace or extend it with your own code in a local stylesheet
and repeat this process until you have something you do like.
What I recommend is
(a) use DocBook to create the _articles_ within your website and then
use Perl/PHP/Servlets/SSI to merge them into page templates
or
(b) use DocBook to create base pages which are then post-processed
by custom software to do fancy things like wrap HTML tables around
sections, add banner ads and other widgets, tack on a nav bar and
the like.
What I currently do is (b) but done by hand using sed scripts.
--
Gary Lawrence Murphy <garym@linux.ca>: office voice/fax: 01 519 4222723
T(C)Inc Business Innovations through Open Source http://www.teledyn.com
M:I-3 - Documenting the Linux kernel: http://kernelbook.sourceforge.net
Free Internet for a Free O/S? - http://www.teledyn.com/products/FreeWWW