1 <?xml version="1.0" encoding="UTF-8"?>
2 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:xhtml="http://www.w3.org/1999/xhtml"
6 <xsl:output method="xml"/>
7 <xsl:strip-space elements="xhtml:a"/>
9 <xsl:include href="utilities.xsl"/>
11 <!-- =====================================================
13 ===================================================== -->
14 <xsl:template match="@*|node()" mode="copy">
16 <xsl:apply-templates select="@*|node()" mode="copy"/>
20 <xsl:template match="/">
21 <xsl:element name="channel-right-now">
22 <xsl:apply-templates select="//xhtml:tr[xhtml:td[not(contains(@class, 'listCell'))]]"/>
26 <xsl:template match="xhtml:tr">
27 <xsl:element name="action">
28 <xsl:attribute name="name">
29 <xsl:call-template name="string-replace">
30 <xsl:with-param name="src" select="xhtml:td[2]//xhtml:a"/>
31 <xsl:with-param name="from" select="$newline"/>
32 <xsl:with-param name="to" select="''"/>
35 <xsl:attribute name="type">
36 <xsl:text>program-info</xsl:text>
38 <xsl:attribute name="reference">
39 <xsl:value-of select="xhtml:td[2]//xhtml:a/@href"/>
41 <xsl:element name="time">
42 <xsl:call-template name="string-replace">
43 <xsl:with-param name="src" select="xhtml:td[1]"/>
44 <xsl:with-param name="from" select="$newline"/>
45 <xsl:with-param name="to" select="''"/>