Last change
on this file since 1556 was
1412,
checked in by joachim, 18 years ago
|
more documentation
M profiles/default/schemas/acco_hall.xml
M profiles/default/schemas/schema.xsl
M profiles/default/workflows/waeup_student_wf/definition.xml
M profiles/default/layouts/layout.xsl
M profiles/default/layouts/acco_bed_booking.xml
M profiles/default/layouts/acco_hall.xml
M profiles/default/types/Student.xml
M profiles/default/types/AccoFolder.xml
M profiles/default/types/AccoHall.xml
M doc/srp_documentation.mm
reserved bed functionallity,
pay hostel-fee for reserved bed
D skins/waeup_student/reserve_accommodation.py
M skins/waeup_accommodation/book_reserved_bed.py
A skins/waeup_accommodation/reserve_accommodation.py
|
File size:
1.7 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 | Schema: <xsl:value-of select="@name"/> |
---|
17 | </h2> |
---|
18 | </xsl:for-each> |
---|
19 | <h1>Fields</h1> |
---|
20 | <table> |
---|
21 | <tr> |
---|
22 | <th>Id</th> |
---|
23 | <th>Type</th> |
---|
24 | <th>default</th> |
---|
25 | </tr> |
---|
26 | <xsl:for-each select="object/field"> |
---|
27 | <xsl:sort select="@name" |
---|
28 | order="ascending" /> |
---|
29 | <xsl:variable name="color"> |
---|
30 | <xsl:choose> |
---|
31 | <xsl:when test="position() mod 2 = 0"> |
---|
32 | <xsl:text>#ffffff</xsl:text> |
---|
33 | </xsl:when> |
---|
34 | <xsl:otherwise> |
---|
35 | <xsl:text>#eeeeee</xsl:text> |
---|
36 | </xsl:otherwise> |
---|
37 | </xsl:choose> |
---|
38 | </xsl:variable> |
---|
39 | <tr style="background-color:{$color}"> |
---|
40 | <td colspan=""> |
---|
41 | <xsl:value-of select="@name"/> |
---|
42 | </td> |
---|
43 | <td colspan=""> |
---|
44 | <xsl:value-of select="@meta_type"/> |
---|
45 | </td> |
---|
46 | <xsl:for-each select="property"> |
---|
47 | <td> |
---|
48 | <xsl:value-of select="@name"/>: <xsl:value-of select="text()"/> |
---|
49 | </td> |
---|
50 | </xsl:for-each> |
---|
51 | </tr> |
---|
52 | </xsl:for-each> |
---|
53 | </table> |
---|
54 | </body> |
---|
55 | </html> |
---|
56 | </xsl:template> |
---|
57 | </xsl:stylesheet> |
---|
58 | |
---|
Note: See
TracBrowser for help on using the repository browser.