OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: 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/docbook-apps@lists.oasis-open.org/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/






[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]