On 2.10.2014 2:22, Richard Hamilton wrote: > <!DOCTYPE ncx > PUBLIC "-//W3C//DTD XHTML 1.1//EN" > "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> > > There is a valid xmlns attribute on the root element, and if you remove the > DOCTYPE lines completely, the file is fine. In 1.78.1 this does not happen. > > I poked around the stylesheets, but couldn't figure out what's going on, and > I didn't see anything in the revision history that seemed pertinent. > > Has anyone run into the same thing?
I never used EPUB2 stylesheets, but trouble spot is:
<xsl:template name="ncx">
<xsl:call-template name="write.chunk">
...
<xsl:with-param name="doctype-public" select="''"/> <!--
intentionally blank -->
<xsl:with-param name="doctype-system" select="''"/> <!--
intentionally blank -->
Specifying empty doctype usually doesn't override doctype specified on
xsl:output. You might try disabling doctype everywhere, it shouldn't
matter even for XHTML content inside EPUB package.
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 rep.
------------------------------------------------------------------
Bringing you XML Prague conference http://xmlprague.cz
------------------------------------------------------------------
signature.asc
Description: OpenPGP digital signature
