Subject: Re: simplifying htdocs build procedure (long term)
To: Hubert Feyrer <hubert@feyrer.de>
From: Julio M. Merino Vidal <jmmv84@gmail.com>
List: netbsd-docs
Date: 01/30/2006 11:07:35
El 30/01/2006, a las 11:00, Hubert Feyrer escribi=F3:

> On Mon, 30 Jan 2006, Julio M. Merino Vidal wrote:
>> I developed some sites using plain XML+XSLT with a home-grown DTD =20
>> (which
>> had very similar tags to Docbook) and home-grown stylesheets.  =20
>> They were
>> damn fast to rebuild and were able to do all you pointed out.
>>
>> So this could be a solution.  Throw away docbook-xsl/docbook-website
>> (possibly including docbook-xml too) and create some simple =20
>> stylesheets
>> (and DTD) from scratch.
>
> What would be the advantage here over (say) going back straight =20
> to .list files?

We'd be using standard tools.  This includes full XML and XSLT parsers.
XSLT stylesheets are much nicer than a script.  They explicitly state
a conversion between XML and another different format.  Whereas a
'.list' parser is a program with hardcoded in rules in it, difficult
to change.

Oh, BTW, something I forgot to mention.  If we had our own stylesheets,
we'd have much better control on the resulting html code.  It could be
extremely CSS-friendly, with "correct" div classes, tags, etc.  When I
used docbook-xsl, it was difficult to customize the resulting html
output by using css alone; you had to also override xslt rules or mess
with the complex and undocumented docbook-xsl internals...

Just keep in mind that XML is not tied to Docbook in any way.  If we
are using Docbook is because we chose to, not because we were forced
in doing so.

--=20
Julio M. Merino Vidal <jmmv84@gmail.com>
The Julipedia - http://julipedia.blogspot.com/