This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Microsoft Encoding Problem


Ruairi,
You have a stylesheet PI in your xml. Something like
<?xml-stylesheet type="text/xsl" href="somexsl.xsl"?>
but you have the wrong value for the href.

Ciao Chris

XML/XSL Portal 
http://www.bayes.co.uk/xml


>-----Original Message-----
>From: owner-xsl-list@lists.mulberrytech.com 
>[mailto:owner-xsl-list@lists.mulberrytech.com]On Behalf Of Ruairi
>Sent: 21 June 2001 13:03
>To: xsl-list@lists.mulberrytech.com
>Subject: [xsl] Microsoft Encoding Problem
>
>
>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
>
>

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]