(no commit message)
authorerik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 23 Aug 2006 20:42:21 +0000 (20:42 +0000)
committererik <erik@77661180-640e-0410-b3a8-9f9b13e6d0e0>
Wed, 23 Aug 2006 20:42:21 +0000 (20:42 +0000)
crawler/kiss/src/channels-favorites-graphic.xsl [new file with mode: 0644]

diff --git a/crawler/kiss/src/channels-favorites-graphic.xsl b/crawler/kiss/src/channels-favorites-graphic.xsl
new file mode 100644 (file)
index 0000000..7586502
--- /dev/null
@@ -0,0 +1,31 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+  xmlns:xhtml="http://www.w3.org/1999/xhtml"
+  version="1.0">
+  
+  <xsl:output method="xml"/>
+  <xsl:strip-space elements="xhtml:a"/>
+  
+  <xsl:include href="utilities.xsl"/>
+  
+  <!-- =====================================================
+    Copying template.
+    ===================================================== -->
+  <xsl:template match="@*|node()" mode="copy">
+    <xsl:copy>
+      <xsl:apply-templates select="@*|node()" mode="copy"/>
+    </xsl:copy>
+  </xsl:template>
+  
+  <xsl:template match="/">
+    <xsl:element name="favorite-channels">
+      <xsl:apply-templates select="//xhtml:td[contains(@class, 'listCell') and position() = 2]"/>
+    </xsl:element>
+  </xsl:template>
+  
+  <xsl:template match="xhtml:td">
+    <action name="{.//xhtml:b}" type="channel-overview" 
+        reference="{xhtml:a/@href}"/>
+  </xsl:template>
+  
+</xsl:stylesheet>