DOCTYPE & HTML tag problems

stulk's Avatar


10 Aug, 2010 03:24 AM

When publishing some of my templates which have a specific DOCTYPE & HTML tag, the published result strips them out.

Yet other templates which are near identical to the former, when published do include the correct DOCTYPE & HTML tag.

See att. file.

Note, these templates are getting some XSLT treatment. It appears this is stripping out the relevant DOCTYPE tag.

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="">
    <xsl:template match="/*">
            <xsl:copy-of select="@*"/>
    <xsl:template match="node()[name()='body']">
            <xsl:attribute name="class">sect-prosp type-landing</xsl:attribute> <!--class goes here -->
            <xsl:copy-of select="@*"/>
            <xsl:copy-of select="./node()"/>
    <xsl:template match="*">
        <xsl:copy-of select="."/>

Any ideas how to add it back in? I was just about to publish a new site design when I discovered this (only in IE) problem. Thanks.

  1. stulk closed this discussion on 11 Aug, 2010 03:41 PM.

  2. stulk re-opened this discussion on 11 Aug, 2010 03:42 PM

  3. 1 Posted by stulk on 11 Aug, 2010 03:42 PM

    stulk's Avatar

    In case anyone else ever needs this: <xsl:output> is the answer.

  4. stulk closed this discussion on 11 Aug, 2010 03:42 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac