xslt/overview.xsl
author Alex Viskovatoff <herzen@imap.cc>
Mon, 26 Sep 2011 19:10:14 +0000
changeset 20 565e0daa124c
parent 0 overview.xsl@9673581c82b4
permissions -rw-r--r--
Add set-publisher.transforms.sfe*, used by the set-publisher script, which copies a repo, changing the publisher Move scripts to their own directory Add xfce-utils and remove obsolete xfce-loginmanager Add libdvdcss, and tag its clients libdvdread and libdvdnav as encumbered Don't build xz, as the system provides it
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     1
<?xml version="1.0" encoding="UTF-8"?>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     2
<xsl:stylesheet
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     3
  version="1.0"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     4
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     5
  xmlns:xhtml="http://www.w3.org/1999/xhtml"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     6
  xmlns="http://www.w3.org/1999/xhtml"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     7
  exclude-result-prefixes="xhtml xsl">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     8
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
     9
  <xsl:output
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    10
      method="xml"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    11
      doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    12
      doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    13
      indent="yes"
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    14
      omit-xml-declaration="yes"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    15
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    16
  <xsl:param name="encumbered">false</xsl:param>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    17
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    18
  <xsl:template match="/pkgs">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    19
    <html>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    20
      <head>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    21
        <title>Packages
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    22
        <xsl:if test="$encumbered='true'">(encumbered)</xsl:if>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    23
        </title>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    24
      </head>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    25
      <body>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    26
        <h1>Packages
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    27
        <xsl:if test="$encumbered='true'">(encumbered)</xsl:if>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    28
        </h1>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    29
        <table border="1">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    30
        <tr>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    31
          <th>Name</th>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    32
          <th>IPS Name</th>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    33
          <th>Group</th>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    34
        </tr>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    35
        <xsl:apply-templates/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    36
        </table>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    37
      </body>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    38
    </html>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    39
  </xsl:template>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    40
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    41
  <xsl:template match="pkg">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    42
    <xsl:if test="($encumbered='true' and @encumbered='true') or ($encumbered!='true' and not(@encumbered='true'))">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    43
      <xsl:variable name="subpackages" select="count(./pkg)+1"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    44
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    45
      <tr>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    46
        <td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    47
        <xsl:if test="$subpackages &gt; 1">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    48
          <xsl:attribute name="rowspan">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    49
            <xsl:value-of select="$subpackages"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    50
          </xsl:attribute>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    51
        </xsl:if>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    52
        <xsl:value-of select="./name"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    53
        </td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    54
        <td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    55
        <xsl:value-of select="./ips_package_name"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    56
        </td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    57
        <td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    58
        <xsl:value-of select="./group"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    59
        </td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    60
      </tr>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    61
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    62
      <xsl:for-each select="./pkg">
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    63
      <tr>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    64
        <td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    65
        <xsl:value-of select="./ips_package_name"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    66
        </td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    67
        <td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    68
        <xsl:value-of select="./group"/>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    69
        </td>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    70
      </tr>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    71
      </xsl:for-each>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    72
    </xsl:if>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    73
  </xsl:template>
9673581c82b4 Initial commit, using current SFE version of pkgbuild spec
Alex Viskovatoff <herzen@imap.cc>
parents:
diff changeset
    74
</xsl:stylesheet>