This is the mail archive of the davenport@berkshire.net mailing list for the Davenport project.


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

Re: DAVENPORT: Indent equivalent for DocBook


At 28 Aug 1999 08:13 -0400, Norman Walsh wrote:
 > / "Steve Greenland" <greenland@ellipsysconsulting.com> was heard to say:
 > | See? You need an indent-like program -- it would pre-proc your document,
 > | and format the sgml consistently. :-)
 > 
 > Er, well, maybe, but it would have to be an DTD-aware program, there's no
 > simple algorithm. Arbortext's ADEPT/Epic products do this very, very well
 > and a whole host of other very nice things. But I can't say that 'cause
 > I work for them :-)

I have a Perl program to pretty up SGML a little, but it uses Earl
Hood's dtd.pl to get the information it needs from the DTD plus it
uses the output from nsgmls (handled by David Megginson's sgmlspl)
because nsgmls will strip the whitespace that SGML says to ignore.
(It's also not ready for public consumption.)

As Norm says, you need to read the DTD and be able to do the SGML
whitespace arcana if you're going to pretty print SGML.

Regards,

Tony Graham
======================================================================
Tony Graham                            mailto:tgraham@mulberrytech.com
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9632
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


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