[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Microsoft Encoding Problem

Subject: Microsoft Encoding Problem
From: "Ruairi" <ruairi@xxxxxxxxxxxx>
Date: Thu, 21 Jun 2001 14:03:19 +0200
stock_control
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.