Next in thread → Next in month →

Re: [docbook-apps] Epub and Saxon: DOCTYPE

From
Bob Stayton <>
Date
2013-04-03T19:19:58+00:00
ID
750277C4A501458B9B3B1A782C896C0A@totoro
Thread
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.  

 

Bob Stayton
Sagehill Enterprises


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
--
Next in thread → Next in month →