OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Subject: Re: DOCBOOK-APPS: readable HTML output

/ Michael Westbay <westbay@users.sourceforge.net> was heard to say:
| Cushman-san wrote:
| > I am writing an XSL wrapper for html/chunk.xsl. This works very nicely, but
| > I have had some difficulty debugging because there are never any linebreaks
| > in the output, making it impossible to read. Is there anything I can do to
| > make the HTML output more readable?
| Yes, there is.  In your custom xsl file include the following line:
|   <xsl:output method="html" indent="yes"/>
| This will format nicely indented tags.
| The only drawback to this is if you have something like <computeroutput> or 
| <programlisting> in your XML, it will get indented - which is probably not 

Some tools also do funky things with the callout extensions if you turn
on indenting. I find it's easier to just run the results through tidy[1]. 

                                        Be seeing you,
[1] http://www.w3.org/People/Raggett/tidy/
Norman Walsh <ndw@nwalsh.com>      | A man should have any number of
http://www.oasis-open.org/docbook/ | little aims about which he should
Chair, DocBook Technical Committee | be conscious and for which he
                                   | should have names, but he should
                                   | have neither name for, nor
                                   | consciousness concerning, the main
                                   | aim of his life.--Samuel Butler
                                   | (II)

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]

Powered by eList eXpress LLC