Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

HTML output from XLS file and XML feed

Avatar of jesperhp
jesperhpFlag for Denmark asked on
Web Languages and StandardsCSSHTML
5 Comments1 Solution540 ViewsLast Modified:
I have a XML feed from a mediaservice, which I would like to show nicely on our web-page. I also have a standard XLS file from the mediaservice, but I'm not that into XLS etc to know exactly how to load the feed along with the stylesheet, and get it shown nicely.

I have full access to change everything in the XLS or greate HTML files, but I dont have access to change the XML feed.

The XML feed is retreived from this location:  http://meltwaternews.com/magenta/xml/html/20/49/rss/152509_hitsentence.rss2.XML

The style is shown below:
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" encoding="iso-8859-1"/>

<xsl:template match="/feeds">
<html>
 <head>
   <style>
     body     { color: #000000; background-color: #ffffff; }
     H2 {font-size: 13pt; font-family: Arial;}
     a:link   {color: #006c43}
     a:visited{color: #006c43;}
     a:hover  {color: gray;}
     .date  {font-size: 9pt; font-family: Arial;}
     .source  {font-size: 9pt; font-family: Arial;}
     .title  {font-size: 10pt; font-family: Arial; color: #006c43; text-decoration: underline;}
     .ingress {font-size: 10pt; font-style: italic; font-family: Times;}
     .match {font-size: 10pt; font-style: italic; font-family: Verdana, arial, sans-serif;}
     .title a:link {font-size: 10pt; font-family: Arial; color: #006c43; text-decoration: underline;}
     .title a:visited{color: #006c43;}
     .title a:hover  {color: gray;}
   </style>
 </head>
 <body>
   <xsl:apply-templates/>
 </body>
</html>
</xsl:template>

<xsl:template match="feed">
 <h2><xsl:value-of select="name"/></h2>
 <table border="0">
   <xsl:for-each select="documents/document">
     <xsl:if test="(alike&lt;2 or docId=alike)">
       <tr>
         <td nowrap="" valign="top">
           <span class="date"><xsl:value-of select="createDate2"/>,</span> <span class="source"><xsl:value-of select="sourcename"/></span>
           <br/>
           <div class="title">
             <a>
               <xsl:attribute name="href"><xsl:value-of select="url"/></xsl:attribute>
               <xsl:attribute name="target">_blank</xsl:attribute>
               <xsl:value-of select="title2"/>
             </a>
           </div>
         </td>
       </tr>
       <tr>
         <td>
           <span class="ingress"><xsl:value-of select="ingress"/></span>
         </td>
       </tr>
       <tr><td></td></tr>
       <tr><td></td></tr>
     </xsl:if>
   </xsl:for-each>
 </table>
</xsl:template>

</xsl:stylesheet>
ASKER CERTIFIED SOLUTION
Avatar of jesperhp
jesperhpFlag of Denmark image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers