[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|