Subject: Re: [xsl] Getting epub: namespace into root html element From: "Abel Braaksma (Exselt) abel@xxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 25 Jun 2014 10:56:39 -0000 |
Peter West lists@xxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>Consider using character maps with XSLT 2.0, instead of disable-output-escaping. D-o-e is not required to be supported by processors and even if it is supported, the specification uses "should" for explaining the workings of d-o-e, which is less strong than a "must", so even if a processor supports it, the way and level it supports it are implementation defined. Specifically, the specification states (see http://www.w3.org/TR/xslt20/#disable-output-escaping):
dinsdag 24 juni 2014 10:29
<xsl:strip-space elements="*"/> <xsl:output method="xhtml" /> <xsl:template match="/"> <xsl:text disable-output-escaping="yes"><!DOCTYPE html></xsl:text> <xsl:apply-templates/> </xsl:template>
<xsl:character-map name="doctype"> <xsl:output-character character="󠀁" string="<!DOCTYPE html>"/> </xsl:character-map>
<xsl:strip-space elements="*"/> <xsl:output method="xhtml" use-character-maps="doctype"/>
<xsl:template match="/"> <xsl:text>󠀁</xsl:text> <xsl:apply-templates/> </xsl:template>
<!DOCTYPE xsl:stylesheet [ <!ENTITY doctype "󠀁 "> ]>
Cheers, Abel
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting epub: namespace i, Peter West lists@xxx | Thread | Re: [xsl] Getting epub: namespace i, Michael Kay mike@xxx |
Re: [xsl] Getting epub: namespace i, Abel Braaksma (Exsel | Date | Re: [xsl] Getting epub: namespace i, Michael Kay mike@xxx |
Month |