[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Getting encoding error on svg output
Hello all,
I hope this problem fall within the scope of this list. I have followed some textbook examples, but got an error. Now I have tried a simple example, but still get the same error: The XML page cannot be displayed Cannot view XML input using style sheet. Please correct the error and then click the Refresh <javascript:location.reload()> button, or try again later. Switch from current encoding to specified encoding not supported. Error processing resource 'http://localhost/test/Transform_Simple.asp'. Line 1, Position 40 <?xml version="1.0" encoding="UTF-16"?> I here give my test files fully: <!-- Asp file --> <% set oXml = Server.CreateObject("MSXML2.DOMDocument") oXml.async = false set oXsl = Server.CreateObject("MSXML2.DOMDocument") oXsl.async = false call oXml.load(Server.MapPath("source.xml")) call oXsl.load(Server.MapPath("stylesheet.xsl")) Response.Write(oXml.transformNode(oXsl)) %> <!-- source --> <?xml version="1.0"?> <root> <Empty/> </root> <!-- Stylesheet --> <?xml version="1.0"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/2000/svg" version="1.0"> <xsl:output indent="yes" doctype-public="-//W3C//DTD SVG 1.0//EN" doctype-system="http://www.w3c.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd" /> <svg width='5cm' height='4cm'> <style type="text/css"> rect { stroke: black; stroke-width: 3; stroke-dasharray: 20, 5, 7, 5; fill: #fcf; } </style> <rect x='0.5cm' y='0.5cm' width='4cm' height='3cm' /> </svg> </xsl:stylesheet> I have tried writing encoding="iso-8859-1" in various places (processing instruction + xsl:output) but nothing I have made seems to work. I don't even have a clue about what's wrong, even less how to solve it. I am running on msxml - latest version of IE. Regards, Ragulf Pickaxe _________________________________________________________________ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail 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
|