DOCTYPE & HTML tag problems

stulk's Avatar

stulk

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="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/*">
        <xsl:copy>
            <xsl:apply-templates/>
            <xsl:copy-of select="@*"/>
        </xsl:copy>
    </xsl:template>
    <xsl:template match="node()[name()='body']">
        <xsl:copy>
            <xsl:attribute name="class">sect-prosp type-landing</xsl:attribute> <!--class goes here -->
            <xsl:copy-of select="@*"/>
            <xsl:copy-of select="./node()"/>
        </xsl:copy>
    </xsl:template>
    <xsl:template match="*">
        <xsl:copy-of select="."/>
    </xsl:template>
</xsl:stylesheet>

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

Generic

? 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