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

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

From: David Cramer <david@thingbag.net>
Date: Thu, 16 Aug 2012 23:14:12 -0500
Message-ID: <502DC514.7060500@thingbag.net>
To: James Fuller <james.fuller.2007@gmail.com>
CC: Zearin <zearin@gonk.net>, XProc Dev <xproc-dev@w3.org>
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></xsl:text>
>     <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

David
Received on Friday, 17 August 2012 04:14:40 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 17 August 2012 04:14:41 GMT