source: WAeUP_SRP/uniben/profiles/default/content.xsl @ 2617

Last change on this file since 2617 was 1449, checked in by joachim, 18 years ago

modified importReservedBeds
fixReservedBeds
added release_bed
many documentation addons for xml-files

File size: 2.6 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
3  <xsl:output method="html"/>
4  <xsl:template match="/">
5    <html>
6      <head>
7        <title>
8          <xsl:value-of select="object/name"/>
9        </title>
10        <link rel="stylesheet" type="text/css" media="all"
11              href="../xsl.css" />     
12      </head>
13      <body>
14        <xsl:for-each select="object">
15          <h2>
16            <xsl:value-of select="@name"/> : <xsl:value-of select="@meta_type"/>
17          </h2>
18          <h1>Objects</h1>
19          <table>
20            <xsl:variable name="path">
21              <xsl:choose>
22                <xsl:when test="@name='portal_directories'">
23                  <xsl:text>directories</xsl:text>
24                </xsl:when>
25                <xsl:when test="@name='portal_layouts'">
26                  <xsl:text>layouts</xsl:text>
27                </xsl:when>
28                <xsl:when test="@name='portal_schemas'">
29                  <xsl:text>schemas</xsl:text>
30                </xsl:when>
31                <xsl:when test="@name='portal_types'">
32                  <xsl:text>types</xsl:text>
33                </xsl:when>
34                <xsl:when test="@name='portal_vocabularies'">
35                  <xsl:text>vocabularies</xsl:text>
36                </xsl:when>
37                <xsl:when test="@name='portal_workflows'">
38                  <xsl:text>workflows</xsl:text>
39                </xsl:when>
40                <xsl:otherwise>
41                  <xsl:text>xxxxxx</xsl:text>
42                </xsl:otherwise>
43              </xsl:choose>
44            </xsl:variable>
45          <xsl:for-each select="object">
46            <xsl:sort select="@name"
47                      order="ascending" />
48            <xsl:variable name="color">
49              <xsl:choose>
50                <xsl:when test="position() mod 2 = 0">
51                  <xsl:text>#ffffff</xsl:text>
52                </xsl:when>
53                <xsl:otherwise>
54                  <xsl:text>#eeeeee</xsl:text>
55                </xsl:otherwise>
56              </xsl:choose>
57            </xsl:variable>
58            <tr style="background-color:{$color}">
59              <td colspan="">
60                <xsl:value-of select="@name"/>
61              </td>
62              <td colspan="">
63                <a href="{$path}/{@name}.xml"><xsl:value-of select="@name"/></a>
64              </td>
65              <td colspan="">
66                <xsl:value-of select="@meta_type"/>
67              </td>
68            </tr>
69          </xsl:for-each>
70        </table>
71        </xsl:for-each>
72      </body>
73    </html>
74  </xsl:template>
75</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.