E
Eric
Hello,
I have the following xml:
<?xml-stylesheet type="text/xsl" href="C:\mypath\myxsl.xsl"?>
<page>
<appl>
<datedisplay>mm/dd/yy</datedisplay>
</appl>
<forms>
<showall>False</showall>
</forms>
</page>
My xsl looks like:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:template match="/">
<xsl:variable name="nTabNumber">6</xsl:variable>
<html>
<head>
<SCRIPT LANGUAGE="JAVASCRIPT" />
</head>
<body></body>
</html>
</xsl:template>
</xsl:stylesheet>
I've pared both of these down from much larger files. With the larger
files I was getting an error message similar to:
XML Error Loading 'file:///d:/mypath/myxsl.xsl'
Switch from current encoding to specified encoding not supported.
at line 1, character 40"<?xml version="1.0" encoding="UTF-8" ?>"
When stepping through the larger file (and the examples I have above)
in XML Spy, I see the characterset getting changed to UTF-16, but I
don't understand why, I see the html produced by the above
transformation as:
<html><head> <META http-equiv="Content-Type" content="text/html;
charset=UTF-16"><SCRIPT></SCRIPT></head></html>
The charset=UTF-16 line appears when I'm stepping over the <SCRIPT
LANGUAGE="JAVASCRIPT" /> tag in XML Spy, does anyone know why?
Thanks,
Eric
I have the following xml:
<?xml-stylesheet type="text/xsl" href="C:\mypath\myxsl.xsl"?>
<page>
<appl>
<datedisplay>mm/dd/yy</datedisplay>
</appl>
<forms>
<showall>False</showall>
</forms>
</page>
My xsl looks like:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="2.0">
<xsl:template match="/">
<xsl:variable name="nTabNumber">6</xsl:variable>
<html>
<head>
<SCRIPT LANGUAGE="JAVASCRIPT" />
</head>
<body></body>
</html>
</xsl:template>
</xsl:stylesheet>
I've pared both of these down from much larger files. With the larger
files I was getting an error message similar to:
XML Error Loading 'file:///d:/mypath/myxsl.xsl'
Switch from current encoding to specified encoding not supported.
at line 1, character 40"<?xml version="1.0" encoding="UTF-8" ?>"
When stepping through the larger file (and the examples I have above)
in XML Spy, I see the characterset getting changed to UTF-16, but I
don't understand why, I see the html produced by the above
transformation as:
<html><head> <META http-equiv="Content-Type" content="text/html;
charset=UTF-16"><SCRIPT></SCRIPT></head></html>
The charset=UTF-16 line appears when I'm stepping over the <SCRIPT
LANGUAGE="JAVASCRIPT" /> tag in XML Spy, does anyone know why?
Thanks,
Eric