On Sun, Oct 2, 2011 at 2:32 PM, Jirka Kosek <[email protected]> wrote: > On 2.10.2011 9:13, Kasun Gajasinghe wrote: > > > This issue was with Saxon. xsltproc works as expected. > > Might be my recollection is wrong, but shouldn't following settings > produce correct output for empty elements like div and script in Saxon 6: > > <xsl:param name="chunker.output.method">saxon:xhtml</xsl:param> > <xsl:param name="chunker.output.omit-xml-declaration">yes</xsl:param> > > You are right. These two params did correct the output. Thanks, I wasn't aware of that. There's another issue now. Since chunker.output.method is set to "saxon:xhtml", will it support other xslt processors? In xsltproc with the said two params, the webhelp output generated the following errors.
Writing docs/content/ch04.html for chapter runtime error: file ../xhtml/chunker.xsl line 143 element document xsltDocumentElem: unsupported method xhtml Writing docs/content/index.html for book runtime error: file ../xhtml/chunker.xsl line 143 element document xsltDocumentElem: unsupported method xhtml Writing docs/index.html Writing docs/content/search/l10n.js no result for docsrc/readme.xml make: *** [webhelp] Error 9 So, does that the better way for this is to create another customization layer that imports webhelp.xsl, and add these params to it? May be there's better solutions out there. Thanks, --Kasun > > Jirka > > -- > ------------------------------------------------------------------ > Jirka Kosek e-mail: [email protected] http://xmlguru.cz > ------------------------------------------------------------------ > Professional XML consulting and training services > DocBook customization, custom XSLT/XSL-FO document processing > ------------------------------------------------------------------ > OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member > ------------------------------------------------------------------ > > -- ~~~*******'''''''''''''*******~~~ Kasun Gajasinghe, University of Moratuwa, Sri Lanka. Blog: http://kasunbg.blogspot.com Twitter: http://twitter.com/kasunbg
