Re: Adding <!DOCTYPE html> using XProc/Calabash

one hack is something like

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
  <xsl:output method="html" encoding="utf-8" indent="yes" />

  <xsl:template match="/">
    <xsl:text disable-output-escaping='yes'>&lt;!DOCTYPE html></xsl:text>


pipe your final html through an xslt step.

hth, Jim Fuller

On Thu, Aug 16, 2012 at 8:27 PM, David Cramer <> wrote:
> On 08/16/2012 11:09 AM, Zearin wrote:
>>> I tried using <!DOCTYPE html SYSTEM "about:legacy-compat">, but that
>>> caused problems in some contexts.
>> Interesting.  Could you elaborate on those contexts?
> We're serving up some html from a webapp running in tomcat. If I just
> open the page in Firefox, it's fine. But when it's in the webapp, I'm
> getting a 404 error. when I have about:legacy-compat (but if we manually
> make it <!DOCTYPE html>, things work fine. I haven't tried debugging
> from the tomcat side since I was hoping it would be easy enough just to
> add the html 5 doctype.
> Thanks,
> David

Received on Thursday, 16 August 2012 21:00:46 UTC