W3C home > Mailing lists > Public > xproc-dev@w3.org > August 2012

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

From: James Fuller <james.fuller.2007@gmail.com>
Date: Thu, 16 Aug 2012 23:00:18 +0200
Message-ID: <CADsXk-ZAJ7=+Ax1VXnQ4_Y+s70XQYQAQuWfC0UYssQfXy8YfVw@mail.gmail.com>
To: David Cramer <david@thingbag.net>
Cc: Zearin <zearin@gonk.net>, XProc Dev <xproc-dev@w3.org>
one hack is something like

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="html" encoding="utf-8" indent="yes" />

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

</xsl:stylesheet>

pipe your final html through an xslt step.

hth, Jim Fuller

On Thu, Aug 16, 2012 at 8:27 PM, David Cramer <david@thingbag.net> 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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 16 August 2012 21:00:46 GMT