[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Epub and Saxon: DOCTYPE
Actually, once a doctype has been set by an xsl:output statement, a customization cannot reset it to nothing in Saxon. That's a quirk of Saxon, confirmed by Michael Kay. The epub stylesheet imports the xhtml-1_1/docbook.xsl stylesheet that sets the doctype. The stylesheet tries to reset that to empty, and succeeds with xsltproc, but does not succeeed with Saxon.
You might try the epub3 stylesheets, which don't have this problem. The other solution is to create your own version of xhtml-1_1/docbook.xsl that has an xsl:output statement without doctype, and then your own version of epub/docbook.xsl that imports it.
When using xsltproc, content.opf and toc.ncx are both generated without DOCTYPE.
When using Saxon, both get an invalid DOCTYPE and epubcheck is complaining.
I did some searching, but did not find any guidance on how to suppress doctype in Saxon.
Is there a way to suppress doctype in Saxon?