xsl-list
[Top] [All Lists]

[xsl] IE error | Switch from current encoding to specified encoding not supported.

2007-10-03 08:53:48
I'm confused by this error I am receiving in IE. I've never
encountered anything like it and I'm confused as to why the below
template would trigger such an error.

Strangely, the stylesheet begins with:

<?xml version='1.0' encoding="UTF-8"?>

not UTF-16 as in the error.

------
Error

Switch from current encoding to specified encoding not supported.
Error processing resource 'https://server.org/private...

<?xml version="1.0" encoding="UTF-16"?><i>Not logged in</i>
                        ---------------------------------------^

==========

XSL template

<xsl:template match="/">
        <xsl:choose>
                <xsl:when test="$userID or $noAuth='true'">
                        <xsl:choose>
                                <xsl:when test="$Mode='index'">
                                        <xsl:apply-templates select="/" 
mode="index" />
                                </xsl:when>
                                <xsl:when test="$Mode='search'">
                                        <xsl:choose>
                                                <xsl:when test="$R">
                                                        <xsl:apply-templates 
select="/" mode="search" />
                                                </xsl:when>
                                                <xsl:otherwise>
                                                        <h2>No results</h2>
                                                </xsl:otherwise>
                                        </xsl:choose>
                                </xsl:when>
                                <xsl:when test="$Mode='report'">
                                        <xsl:apply-templates select="/" 
mode="report" />
                                </xsl:when>
                                <xsl:otherwise>
                                        <xsl:call-template name="warning" />
                                        <xsl:apply-templates />
                                        <xsl:call-template name="warning" />
                                </xsl:otherwise>
                        </xsl:choose>
                </xsl:when>
                <xsl:otherwise>
                        <i>Not logged in</i>
                </xsl:otherwise>
        </xsl:choose>
</xsl:template>

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--