discuss: LDP Style discussion (cont.)
Subject:
Re: LDP Style discussion (cont.)
From:
Alexander Bartolich ####@####.####
Date:
14 Apr 2002 15:31:02 -0000
Message-Id: <3CB9A089.6080904@gmx.at>
####@####.#### wrote:
> [...]
> Are you guys all suggesting I use Docbook XML from now on?
No.
IMHO right now the XML tool chain kind of sucks.
This won't matter if you just want HTML and
don't care about RTF or DVI.
What you should do is to keep XML in mind when you write SGML.
Don't use tricks like </>. Always quote attribute values.
A good reading on this is
http://docbook.org/tdg/en/html/appb.html
> I ask, because I might as well convert now,
> before I keep adding to the howtos.
It is possible to convert SGML to XML through search-and-replace.
Obviously you have to change the doctype declaration.
And empty items like <xref linkend="intro"> need a closing / in XML,
which is rejected in SGML.
A trivial Perl script should do (not tested):
s#(<xref [^>]*)>#$1/>#