Subject: RE: [xsl] Microsoft Encoding Problem From: "Chris Bayes" <Chris@xxxxxxxxxxx> Date: Thu, 21 Jun 2001 13:26:54 +0100 |
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@xxxxxxxxxxxxxxxxxxxxxx >[mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx]On Behalf Of Ruairi >Sent: 21 June 2001 13:03 >To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx >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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Microsoft Encoding Problem, Ruairi | Thread | [xsl] Fwd: XSLISAPI filter for IIS , gpk17 |
RE: [xsl] Re: Any Doc to XML conver, DPawson | Date | [xsl] Fwd: XSLISAPI filter for IIS , gpk17 |
Month |