aboutsummaryrefslogtreecommitdiffstats
path: root/dvb-t/fi-Ruovesi_Storminiemi
diff options
context:
space:
mode:
authorChristoph Pfister <pfister@linuxtv.org>2010-04-29 20:08:19 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-04-29 20:08:19 +0200
commit5c1672bd77b1e3bbe0c5f09feef834a3cc4ef9fe (patch)
tree131bf3f1aa43309fbbd73b17a6d037bc9ae17bad /dvb-t/fi-Ruovesi_Storminiemi
parent58721baa6ca5d82266bdebbbc3d8844b43bacf95 (diff)
downloaddtv-scan-tables-5c1672bd77b1e3bbe0c5f09feef834a3cc4ef9fe.tar.gz
update scan file for de-Primacom
submitted by robert.wohlrab gmx.de
Diffstat (limited to 'dvb-t/fi-Ruovesi_Storminiemi')
0 files changed, 0 insertions, 0 deletions
n111'>111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!--
  XSL stylesheet for processing documentation for the lcd4linux project
    Copyright 2004 Xavier Vello <xavier66@free.fr>
    Copyright 2004 The LCD4Linux Team <lcd4linux-devel@users.sourceforge.net>
-->

<!--The special helpers-->

<xsl:template match="cmd">
  <xsl:element name="div">
    <xsl:attribute name="class">cmd</xsl:attribute>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<xsl:template match="conf">
  <xsl:element name="div">
    <xsl:attribute name="class">conf</xsl:attribute>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<xsl:template match="note">
  <xsl:element name="div">
    <xsl:attribute name="class">note</xsl:attribute>
    <xsl:element name="img">
      <xsl:attribute name="src">
        <xsl:copy-of select="$root"/>
        <xsl:text>images/note-icon.png</xsl:text>
      </xsl:attribute>
      <xsl:attribute name="alt">
        <xsl:text>Note : </xsl:text>
      </xsl:attribute>  
      <xsl:attribute name="class">icon</xsl:attribute>
    </xsl:element>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<xsl:template match="warn">
  <xsl:element name="div">
    <xsl:attribute name="class">warn</xsl:attribute>
    <xsl:element name="img">
      <xsl:attribute name="src">
        <xsl:copy-of select="$root"/>
        <xsl:text>images/warn-icon.png</xsl:text>
      </xsl:attribute>
      <xsl:attribute name="alt">
        <xsl:text>Warning : </xsl:text>
      </xsl:attribute> 
      <xsl:attribute name="class">icon</xsl:attribute>
    </xsl:element>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<xsl:template match="new">  <!--This last will be more complicated-->
  <xsl:element name="div">
    <xsl:attribute name="class">new</xsl:attribute>
    <xsl:apply-templates/>
  </xsl:element>
</xsl:template>

<xsl:template match="link" mode="head">
  <xsl:apply-templates select="."/>
  <xsl:element name="br"/>
</xsl:template>

<xsl:template match="link">
  <xsl:choose>
  <xsl:when test="@ref">
    <xsl:variable name="refid" select="@ref"/>
    <xsl:choose>
      <xsl:when test="$references/ref[@id=$refid]">
        <xsl:element name="a">
        <xsl:attribute name="href">
          <xsl:choose>
            <xsl:when test="$references/ref[@id=$refid]/class = $class">
              <xsl:value-of select="concat($references/ref[@id=$refid]/file, '.html', $references/ref[@id=$refid]/anchor)"/>
            </xsl:when> 
            <xsl:when test="not(string-length($references/ref[@id=$refid]/class))">
              <xsl:copy-of select="$root"/>
              <xsl:value-of select="concat($references/ref[@id=$refid]/file, '.html', $references/ref[@id=$refid]/anchor)"/>
            </xsl:when>
            <xsl:otherwise>
              <xsl:copy-of select="$root"/>
              <xsl:value-of select="concat($references/ref[@id=$refid]/class, '/', $references/ref[@id=$refid]/file, '.html', $references/ref[@id=$refid]/anchor)"/>
            </xsl:otherwise>
          </xsl:choose>              
        </xsl:attribute>
        <xsl:choose>
          <xsl:when test="string-length(.)">
            <xsl:value-of select="."/>
          </xsl:when>
          <xsl:when test="$references/ref[@id=$refid]/label">
            <xsl:value-of select="$references/ref[@id=$refid]/label"/>
           </xsl:when> 
          <xsl:otherwise>
            <xsl:text>NO LABEL</xsl:text> 
          </xsl:otherwise>
        </xsl:choose>
        </xsl:element>   
      </xsl:when>
    </xsl:choose>
  </xsl:when>
  <xsl:when test="@url">
    <xsl:element name="a">
      <xsl:attribute name="href">
        <xsl:value-of select="@url"/>
      </xsl:attribute>
      <xsl:choose>
        <xsl:when test="string-length(.)">
          <xsl:value-of select="."/>
        </xsl:when>
        <xsl:otherwise>
          <xsl:value-of select="@url"/>
        </xsl:otherwise>
      </xsl:choose>
    </xsl:element> 
  </xsl:when>
  <xsl:otherwise>
    <xsl:message><xsl:value-of select="current()"/> : invalid link !</xsl:message>
  </xsl:otherwise> 
  </xsl:choose>
</xsl:template>

<xsl:template match="index">
  <xsl:choose>
    <xsl:when test="@class">
      <xsl:apply-templates select="$references/ref">
       <xsl:with-param name="class"><xsl:value-of select="@class"/></xsl:with-param>
     </xsl:apply-templates>      
    </xsl:when>
    <xsl:otherwise>
      <xsl:apply-templates select="$references/ref"/>
    </xsl:otherwise>
  </xsl:choose>
</xsl:template>

</xsl:stylesheet>