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.  

Bob Stayton
Sagehill Enterprises
[email protected]


From: Marcel Tromp 
Sent: Wednesday, April 03, 2013 11:00 AM
To: docbook-apps 
Subject: [docbook-apps] Epub and Saxon: DOCTYPE


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?

MT
--

Reply via email to