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

Getting encoding error on svg output

Subject: Getting encoding error on svg output
From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx>
Date: Mon, 12 May 2003 12:15:13 +0000
svg encoding
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



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.