Subject: Re: Hacking (make element) in the DocBook stylesheets From: James Clark <jjc@xxxxxxxxxx> Date: Fri, 28 Aug 1998 20:15:59 +0700 |
Hacking the stylesheet is the wrong way to solve that problem. The reason the SGML backend does that is that if it doesn't add whitespace anywhere, the output would often have extremely long lines (sometimes the entire output would be a single line), but it doesn't know anything about the semantics of the output DTD, so it is only safe to add linebreaks inside tags. It would be easy to hack the SGML backend to add an option not to add any whitespace, or to otherwise customize the whitespace handlings. Alternatively just run the output through a HTML pretty printer (like Dave Raggett's tidy). James Norman Walsh wrote: > > Hello world, > > I'm toying with the following idea: replace all calls to (make > element) in the DocBook HTML Stylesheet with a function call, > (make-element), that can generate more reasonable line breaks. > The (make-element) function manages to take exactly the same > arguments as (make element). > > Roughly half the time, it seems like the right thing to do. The > rest of the time it seems like a really bad idea. > > On the plus side, the default output from the stylesheet would > look more like this: > > <HTML> > <HEAD> > <TITLE></TITLE> > > than this: > > <HTML > ><HEAD > ><TITLE > ></TITLE > > On the minus side, > > - Getting really reasonable line breaks all the time might require a > fair amount of work in make-entity > > - It would have some performance implications > > - Existing customization layers would still work, but would contain a > mixture of styles > > - There might be implications that have never occurred to me > > Anyone have any thoughts on the matter? > > Cheers, > norm > -- > Norman Walsh <ndw@xxxxxxxxxx> | The man with ten children is > http://nwalsh.com/ | better off than the one with ten > | thousand fonts of type, because > | the man with ten children doesn't > | want any more. > > DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Hacking (make element) in the DocBo, Norman Walsh | Thread | Re: Hacking (make element) in the D, Norman Walsh |
Hacking (make element) in the DocBo, Norman Walsh | Date | backend: special space entity in ou, Horst Kucharczyk |
Month |