← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook] w3.org won't serve DTD imbedded in Docbook generated output - but only to IE

From
William R. (Bill) Greene <>
Date
2009-02-25T00:44:58+00:00
ID
Thread
Re: [docbook] w3.org won't serve DTD imbedded in Docbook generated output - but only to IE
On 2009-02-23 , at 16:41:15, Adam Constabaris wrote:

> So, the short version is, if you absolutely don't want the doctype  
> declaration in the output, you'll either have to edit your base  
> stylesheets or post-process your output to strip the doctype  
> declaration [1].

...

> [1]
> http://www.mail-archive.com/[email protected]/msg09158.html

FWIW, this problem also occurs with the ePub stylesheets.  Because  
epub/docbook.xsl imports xhtml-1_1/docbook.xsl, which contains this  
line:

    <xsl:output method="xml" encoding="UTF-8" indent="no" doctype- 
public="-//W3C//DTD XHTML 1.1//EN" doctype-system="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd 
"/>

this XHTML was generated:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">

which caused the online version of epubcheck at http://www.threepress.org/document/epub-validate/ 
  to complain:

    WARNING: wrg-resume.epub/wrg-resume.xhtml Unresolved external XML  
entity 'http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd'

In my case, I removed the offending lines thus:

    cat wrg-resume.xhtml | sed '2,3d' > wrg-resume.xhtml
________________________________________________________________________

Bill Greene
http://www.linkedin.com/in/williamrgreene
http://bill2u.wordpress.com/
← Prev in month ← Prev in thread
Next in thread → Next in month →