Re: [docbook-apps] Pretty-printing HTML and FO output

From
Fekete Róbert <>
Date
2012-09-10T19:06:27+00:00
ID
15c1-504e3a00-37-266ea8c0@241855340
Thread
Re: [docbook-apps] Pretty-printing HTML and FO output
Hi, 

I don't know if this is possible from XSL, but you can reformat/reindent your XML and FO files for examle with xmllint (xmllint --format) or tidy (http://tidy.sourceforge.net/) as well.

HTH, 

Regards, 
Robert

 
On Monday, September 10, 2012 18:37 CEST,  wrote: 
 
> Hi
> 
> For general debugging purposes I want to be able to indent/pretty-print 
> my output, both HTML and FO. Particularly with the FO files, the lines 
> are extremely long and it makes opening the FO file in an editor painful.
> 
> For the HTML I know I can use an <xsl:output indent="yes"/> element in 
> my customization layer as this is supported by my XSLT processor, but I 
> also saw that there's the chunker.output.indent parameter. The 
> parameter's name seems to imply that it would only work if you use the 
> chunking stylesheets. I also noticed that <xsl:output indent="no"/> is 
> exlicitly set in html/docbook.xsl. Can someone clarify whether I can 
> override that in the customization layer?
> 
> For FO, I noticed the following comment in fo/docbook.xsl
> 
> <!-- It is important to use indent="no" here, otherwise verbatim -->
> <!-- environments get broken by indented tags...at least when the -->
> <!-- callout extension is used...at least with some processors -->
> <xsl:output method="xml" indent="no"/>
> 
> Can anyone shed any light on this comment?
> 
> Thanks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: 
> For additional commands, e-mail: 
> 
>