Last change
on this file since 1977 was
1417,
checked in by joachim, 18 years ago
|
Edit student_study course added
verdicts vocabulary added
new levels are only created, when no level there,
allow loggin for returning students, which have been created with add_student
|
File size:
2.4 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 | Vocabulary: <xsl:value-of select="@name"/> |
---|
17 | </h2> |
---|
18 | </xsl:for-each> |
---|
19 | <h1>Properties</h1> |
---|
20 | <table> |
---|
21 | <xsl:for-each select="object/property"> |
---|
22 | <xsl:sort select="@name" |
---|
23 | order="ascending" /> |
---|
24 | <xsl:variable name="color"> |
---|
25 | <xsl:choose> |
---|
26 | <xsl:when test="position() mod 2 = 0"> |
---|
27 | <xsl:text>#ffffff</xsl:text> |
---|
28 | </xsl:when> |
---|
29 | <xsl:otherwise> |
---|
30 | <xsl:text>#eeeeee</xsl:text> |
---|
31 | </xsl:otherwise> |
---|
32 | </xsl:choose> |
---|
33 | </xsl:variable> |
---|
34 | <tr style="background-color:{$color}"> |
---|
35 | <td colspan=""> |
---|
36 | <xsl:value-of select="@name"/> |
---|
37 | </td> |
---|
38 | </tr> |
---|
39 | </xsl:for-each> |
---|
40 | </table> |
---|
41 | <h1>Items</h1> |
---|
42 | <table> |
---|
43 | <tr> |
---|
44 | <th>Key</th> |
---|
45 | <th>MsgId</th> |
---|
46 | <th>Text</th> |
---|
47 | </tr> |
---|
48 | <xsl:for-each select="object/item"> |
---|
49 | <xsl:sort select="@name" |
---|
50 | order="ascending" /> |
---|
51 | <xsl:variable name="color"> |
---|
52 | <xsl:choose> |
---|
53 | <xsl:when test="position() mod 2 = 0"> |
---|
54 | <xsl:text>#ffffff</xsl:text> |
---|
55 | </xsl:when> |
---|
56 | <xsl:otherwise> |
---|
57 | <xsl:text>#eeeeee</xsl:text> |
---|
58 | </xsl:otherwise> |
---|
59 | </xsl:choose> |
---|
60 | </xsl:variable> |
---|
61 | <tr style="background-color:{$color}"> |
---|
62 | <td colspan=""> |
---|
63 | <xsl:value-of select="@key"/> |
---|
64 | </td> |
---|
65 | <td colspan=""> |
---|
66 | <xsl:value-of select="@msgid"/> |
---|
67 | </td> |
---|
68 | <td colspan=""> |
---|
69 | <xsl:value-of select="text()"/> |
---|
70 | </td> |
---|
71 | </tr> |
---|
72 | </xsl:for-each> |
---|
73 | </table> |
---|
74 | </body> |
---|
75 | </html> |
---|
76 | </xsl:template> |
---|
77 | </xsl:stylesheet> |
---|
Note: See
TracBrowser for help on using the repository browser.