now uses the correct part of the file
[utils] / crawler / kiss / src / channel-right-now-mobile.xsl
index 15b0c141cd35e99cf54eff06ffa4fb5061e55d79..ea5ba68023f286d03f6e307378a053d1e02f6bee 100644 (file)
@@ -19,8 +19,7 @@
   
   <xsl:template match="/">
     <xsl:element name="channel-right-now">
-      <!-- [contains(@class,'listCell')] -->
-      <xsl:apply-templates select="//xhtml:tr[xhtml:td[contains(@class, 'listCell')]]"/>
+      <xsl:apply-templates select="//xhtml:tr[xhtml:td[not(contains(@class, 'listCell'))]]"/>
     </xsl:element>
   </xsl:template>
   
@@ -28,7 +27,7 @@
      <xsl:element name="action">
        <xsl:attribute name="name">
          <xsl:call-template name="string-replace">
-           <xsl:with-param name="src" select="xhtml:td[2]/xhtml:a"/>
+           <xsl:with-param name="src" select="xhtml:td[2]//xhtml:a"/>
            <xsl:with-param name="from" select="$newline"/>
            <xsl:with-param name="to" select="''"/>
          </xsl:call-template>
@@ -37,7 +36,7 @@
          <xsl:text>program-info</xsl:text>
        </xsl:attribute>
        <xsl:attribute name="reference">
-         <xsl:value-of select="xhtml:td[2]/xhtml:a/@href"/>
+         <xsl:value-of select="xhtml:td[2]//xhtml:a/@href"/>
        </xsl:attribute>
        <xsl:element name="time">
          <xsl:call-template name="string-replace">