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

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

From: Geert Josten <geert.josten@dayon.nl>
Date: Fri, 17 Aug 2012 08:39:49 +0200
Message-ID: <8b416c9fd5b527d71479df55764c90bf@mail.gmail.com>
To: David Cramer <david@thingbag.net>, James Fuller <james.fuller.2007@gmail.com>
Cc: Zearin <zearin@gonk.net>, XProc Dev <xproc-dev@w3.org>
Probably because you have a step after the xslt that is expecting XML, not
text/html? There should be tricks to force it into treating it as text or
binary.. i think.. :P

-----Oorspronkelijk bericht-----
Van: David Cramer [mailto:david@thingbag.net]
Verzonden: vrijdag 17 augustus 2012 6:14
Aan: James Fuller
CC: Zearin; XProc Dev
Onderwerp: Re: Adding <!DOCTYPE html> using XProc/Calabash

On 08/16/2012 04:00 PM, James Fuller wrote:
> 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>
>     </html>
>   </xsl:template>
> </xsl:stylesheet>
> pipe your final html through an xslt step.

Thanks Jim. Actually, I've tried that
and get:

com.xmlcalabash.core.XProcException: XD0001

Received on Friday, 17 August 2012 06:40:32 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:17:04 UTC