merge the formfield patch from ooo-build
[ooovba.git] / extras / source / misc_config / wizard / web / layouts / simple / index.html.xsl
blob43d6f78931e5492b7534aa695435e2dd79dc3d53
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!-- =================================================
4 This template is a skeleton for single level TOC pages
5 Do not overwrite this ! copy it and complete the missing
6 code.
8 I use the @ character whereever there is a missing code, so
9 you can use a simple find to navigate and find the
10 places...
12 ====================================================== -->
14 <xsl:stylesheet version="1.0"
15 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
16 xmlns="http://www.w3.org/1999/xhtml">
18 <xsl:output method = "html"
19 media-type = "text/html"
20 indent = "yes"
21 doctype-public = "-//W3C//DTD HTML 4.0 Transitional//EN"
22 omit-xml-declaration = "yes"
23 standalone = "yes" />
26 <xsl:include href="../layout.xsl"/>
29 <!-- =============================
30 HTML BODY
31 ================================== -->
33 <xsl:template name="body">
34 <body>
36 <table width="100%" border="0" cellpadding="0" cellspacing="0" class="tcolor">
38 <xsl:call-template name="title"/>
39 <xsl:call-template name="toc"/>
41 </table>
43 </body>
44 </xsl:template>
47 <xsl:template name="toc">
48 <!--
49 @ pre toc html here
50 -->
51 <tr>
52 <td width="30" class="ccolor">&#160;
53 </td>
54 <td>
56 <!-- use this alternative if you do not need to use groups
57 (uncomment to use - and do not forget to comment the group
58 option above...)-->
60 <xsl:apply-templates select="/session/content/document"/>
62 <!--
63 @ post toc html here
64 -->
65 </td>
66 </tr>
68 </xsl:template>
70 <!-- also when using groups, in the end it comes
71 to this template, which is called for each document -->
72 <xsl:template match="document">
73 <p>
74 <xsl:apply-templates select="@icon"/>
76 <xsl:apply-templates select="@title"/>
77 <xsl:apply-templates select="@description"/>
78 <xsl:apply-templates select="@author"/>
79 <xsl:apply-templates select="@create-date"/>
80 <xsl:apply-templates select="@update-date"/>
81 <xsl:apply-templates select="@filename"/>
82 <xsl:apply-templates select="@format"/>
83 <xsl:apply-templates select="@format-icon"/>
84 <xsl:apply-templates select="@format-icon"/>
85 </p>
87 <xsl:if test="position() &lt; last()">
88 <hr/>
89 </xsl:if>
91 </xsl:template>
93 <xsl:template name="document-group">
94 <xsl:param name="group"/>
96 <!-- @ pre group code here -->
98 <!-- - - -->
100 <xsl:variable name="count" select="(position() - 1) * $group + 1"/>
102 <xsl:for-each select="/session/content/document[$count &lt;= position() and position() &lt; ($count + $group)]">
104 <xsl:apply-templates select="."/>
106 </xsl:for-each>
108 <!-- @ post group code here -->
110 <!-- - - -->
112 </xsl:template>
115 <xsl:template name="title">
116 <!--
117 @ Pre title html code here
119 <tr>
120 <td height="80" colspan="2" class="toctitle">
122 <xsl:value-of select="/session/general-info/@title"/>
124 <!--
125 @ Post title html code here
127 </td>
128 </tr>
129 </xsl:template>
131 </xsl:stylesheet>