This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Microsoft Encoding Problem
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: [xsl] Microsoft Encoding Problem
- From: "Ruairi" <ruairi at rutlands dot com>
- Date: Thu, 21 Jun 2001 14:03:19 +0200
- Reply-To: xsl-list at lists dot mulberrytech dot com
I am using MSXML and try to output XML to a Web browser wit the following
URL http://localhost/xsl.asp?file=dummy.xml
Any suggestions?
But I get the following error in IE:
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then
click the Refresh button, or try again later.
--------------------------------------------------------------
Switch from current encoding to specified encoding not supported. Line 1,
Position 40
<?xml version="1.0" encoding="UTF-16"?>
------------------------------------------------------------
Here is my XSL:
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes" />
<xsl:template match="/">
<products>
<xsl:apply-templates
select="//product[stock_control/supplier/@id_ref='Choco Holics Dream']"/>
</products>
</xsl:template>
<xsl:template match="product">
<xsl:copy>
<xsl:copy-of select="required_features" />
<levels>
<xsl:copy-of select="stock_control/warehouse_level" />
<desired_level>
<xsl:value-of select="stock_control/supplier/@desired_level"/>
</desired_level>
<min_order_level>
<xsl:value-of select="stock_control/supplier/@min_order_level"/>
</min_order_level>
<awaiting_delivery>
<xsl:value-of select="stock_control/supplier/order/@quantity"/>
</awaiting_delivery>
</levels>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list