I have a xml file - gigs.xml
I have a xsl file - gigs_edit.xml
I have an asp file - gigs_edit.asp
The xsl styles the xml and it is pulled into the browser through the asp file.
However I get this error - "System does not support the specified encoding"
Here is my xml
__________________________
__________
_____
<?xml version="1.0" encoding="UTF-16"?>
<sexmachina>
<gig id="0" online="1" played="0">
<city>Oxford</city>
<venue>Kiss Bar</venue>
<date>Tuesday 26th April</date>
<mapUrl></mapUrl>
<support>
<band1>
<name>cassette for cassette</name>
<url>
http://www.jitter.co.uk/cfc/index.html</u
rl>
</band1>
<band2>
<name>we the starling</name>
<url></url>
</band2>
<band3>
<name></name>
<url></url>
</band3>
</support>
<notes>dasdsdf</notes>
</gig>
</sexmachina>
Here is my XSL
__________________________
__________
__________
<?xml version="1.0" encoding="UTF-16"?>
<xsl:stylesheet version="1.0" xmlns:xsl="
http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" encoding="UTF-16" version="1.0"/>
<xsl:template match="/">
<xsl:apply-templates />
</xsl:template>
<xsl:template match="/gigs">
<html>
<head>
<title>sexmachina</title>
<link rel="stylesheet" type="text/css" href="../styles.css" />
<script type="text/javascript" src="../js/misc-scripts.js
"></script
>
</head>
<body onload="self.focus();">
<table border="0">
<tr>
<td>
<table width="100%">
<tr>
<td valign="bottom"><span class="title">sexmachina</
span></td>
</tr>
<tr>
<td valign="bottom">
<span class="title">gigs</span>
<a class="norm" href="gigs_new.asp">add new date</a>
<a class="norm" href="options.asp">back to options</a>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td height="10"></td>
</tr>
<xsl:for-each select="gig">
<tr>
<td>
<table>
<tr>
<td width="100"><span class="gen"><xsl:value-of select="city" /></span></td>
<td width="200"><span class="gen"><xsl:value-of select="venue" /></span></td>
<td width="180"><span class="gen"><xsl:value-of select="date" /></span></td>
<td width="30"><a class="norm" href="gigs_details.asp?id=
{@id}">edi
t</a></td>
<td width="40"><a class="norm" href="gigs_delete_confirm.
asp?id={@i
d}&cit
y={city}&a
mp;venue={
venue}&
;datex={da
te}">delet
e</a></td>
</tr>
<tr>
<td height="10"></td>
</tr>
</table>
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
Here is my ASP
__________________________
________
xml = Server.MapPath("..\xml\gig
s.xml")
xsl = Server.MapPath("..\xml\gig
s_edit.xsl
")
Set objXML = Server.Createobject("Micro
soft.XMLDO
M")
objXML.validateOnParse = true
objXML.async = false
objXML.load(xml)
Set objXSL = Server.Createobject("Micro
soft.XMLDO
M")
objXSL.validateOnParse = true
objXSL.async = false
objXSL.load(xsl)
Response.Write (objXML.transformNode(objX
SL))
Can anyone help. It just seems like it's being annoying on purpose.
Thanks,
Dave