[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

XML encoding

Asked by weerdboil in Extensible Markup Language (XML), Extensible HTML (XHTML)

Tags: encoding, xsl

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</url>
                  </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}">edit</a></td>
                                          <td width="40"><a class="norm" href="gigs_delete_confirm.asp?id={@id}&amp;city={city}&amp;venue={venue}&amp;datex={date}">delete</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\gigs.xml")
xsl = Server.MapPath("..\xml\gigs_edit.xsl")
 
Set objXML = Server.Createobject("Microsoft.XMLDOM")
objXML.validateOnParse = true
objXML.async = false
objXML.load(xml)

Set objXSL = Server.Createobject("Microsoft.XMLDOM")
objXSL.validateOnParse = true
objXSL.async = false
objXSL.load(xsl)

Response.Write (objXML.transformNode(objXSL))



Can anyone help. It just seems like it's being annoying on purpose.

Thanks,
Dave




[+][-]04/28/05 10:19 AM, ID: 13887954Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Extensible Markup Language (XML), Extensible HTML (XHTML)
Tags: encoding, xsl
Sign Up Now!
Solution Provided By: b1xml2
Participating Experts: 1
Solution Grade: A
 
[+][-]04/28/05 10:20 AM, ID: 13887963Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/28/05 10:21 AM, ID: 13887974Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04/28/05 11:01 AM, ID: 13888354Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/28/05 02:07 PM, ID: 13890018Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04/30/05 07:42 AM, ID: 13900688Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05/18/05 05:03 AM, ID: 14026200Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89