Last change
on this file since 7979 was
3689,
checked in by Henrik Bettermann, 16 years ago
|
New BASE and EXTENSION profiles
|
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.