Changeset 1403 for WAeUP_SRP/trunk/profiles/default/layouts/layout.xsl
- Timestamp:
- 9 Feb 2007, 15:37:49 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/profiles/default/layouts/layout.xsl
r1397 r1403 4 4 <xsl:template match="/"> 5 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> 6 13 <body> 7 14 <xsl:for-each select="object"> 8 <div> 9 <xsl:value-of select="@name"/> 10 </div> 15 <h1><xsl:value-of select="@name"/></h1> 11 16 </xsl:for-each> 17 <h1>Layout</h1> 18 <table> 19 <xsl:for-each select="object/table/row"> 20 <xsl:variable name="color"> 21 <xsl:choose> 22 <xsl:when test="position() mod 2 = 0"> 23 <xsl:text>#ffffff</xsl:text> 24 </xsl:when> 25 <xsl:otherwise> 26 <xsl:text>#eeeeee</xsl:text> 27 </xsl:otherwise> 28 </xsl:choose> 29 </xsl:variable> 30 <tr style="background-color:{$color}"> 31 <xsl:for-each select="cell"> 32 <td> 33 <xsl:value-of select="@name"/> 34 </td> 35 </xsl:for-each> 36 </tr> 37 </xsl:for-each> 38 </table> 12 39 <h1>Properties</h1> 13 <xsl:for-each select="object/property"> 14 Property : 15 <div> 16 <xsl:value-of select="@name"/>: <xsl:value-of select="text()"/> 17 </div> 18 </xsl:for-each> 40 <table> 41 <xsl:for-each select="object/property"> 42 <xsl:variable name="color"> 43 <xsl:choose> 44 <xsl:when test="position() mod 2 = 0"> 45 <xsl:text>#ffffff</xsl:text> 46 </xsl:when> 47 <xsl:otherwise> 48 <xsl:text>#eeeeee</xsl:text> 49 </xsl:otherwise> 50 </xsl:choose> 51 </xsl:variable> 52 <tr style="background-color:{$color}"> 53 <td> 54 <xsl:value-of select="@name"/> 55 </td> 56 <td> 57 <xsl:value-of select="text()"/> 58 </td> 59 </tr> 60 </xsl:for-each> 61 </table> 19 62 <h1>Widgets</h1> 20 <xsl:for-each select="object/widget"> 21 <div>Widget: <xsl:value-of select="@name"/> 22 Type:<xsl:value-of select="@meta_type"/> 23 </div> 24 <div>Properties:</div> 25 <xsl:for-each select="property"> 26 <div> 27 <xsl:value-of select="@name"/>: <xsl:value-of select="text()"/> 28 </div> 29 <div> 30 <xsl:value-of select="element"/> 31 </div> 32 <br/> 63 <table> 64 <xsl:for-each select="object/widget"> 65 <xsl:variable name="color"> 66 <xsl:choose> 67 <xsl:when test="position() mod 2 = 0"> 68 <xsl:text>#ffffff</xsl:text> 69 </xsl:when> 70 <xsl:otherwise> 71 <xsl:text>#eeeeee</xsl:text> 72 </xsl:otherwise> 73 </xsl:choose> 74 </xsl:variable> 75 <tr style="background-color:{$color}"> 76 <th> 77 <xsl:value-of select="@name"/> 78 </th> 79 <td colspan="2"> 80 <xsl:value-of select="@meta_type"/> 81 </td> 82 </tr> 83 <tr style="background-color:{$color}"> 84 <th colspan="3"> 85 Properties: 86 </th> 87 </tr> 88 <xsl:for-each select="property"> 89 <tr style="background-color:{$color}"> 90 <th> 91 <xsl:value-of select="@name"/> 92 </th> 93 <td> 94 <xsl:value-of select="text()"/> 95 </td> 96 <td> 97 <xsl:for-each select="element"> 98 <xsl:value-of select="@value"/> 99 </xsl:for-each> 100 </td> 101 </tr> 102 </xsl:for-each> 33 103 </xsl:for-each> 34 </ xsl:for-each>104 </table> 35 105 </body> 36 106 </html>
Note: See TracChangeset for help on using the changeset viewer.