merge the formfield patch from ooo-build
[ooovba.git] / extras / source / misc_config / wizard / web / layouts / frame_bottom / tocframe.html.xsl
blobb45cc81cf7e6f3b07be5060f9168c03ec6a70030
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" />
25 <xsl:include href="../layout.xsl"/>
29 <!-- =============================
30 HTML BODY
31 ================================== -->
33 <xsl:template name="body">
34 <xsl:call-template name="toc"/>
35 </xsl:template>
38 <xsl:template name="toc">
39 <xsl:variable name="doc-count" select="count(/session/content/document)"/>
41 <table width="{$doc-count * 250}" height="250" border="0" cellpadding="0" cellspacing="0" class="tcolor">
43 <tr>
44 <td height="50" colspan="{$doc-count * 2 + 2}" class="toctitle">
45 <xsl:value-of select="/session/general-info/@title"/>
46 </td>
47 </tr>
49 <!-- use this alternative if you do not need to use groups
50 (uncomment to use - and do not forget to comment the group
51 option above...)-->
53 <tr>
54 <xsl:apply-templates select="/session/content/document"/>
55 <td colspan="2"></td>
56 </tr>
58 </table>
60 <!--
61 @ post toc html here
62 -->
64 <p class="colback"> </p>
66 </xsl:template>
68 <!-- also when using groups, in the end it comes
69 to this template, which is called for each document -->
70 <xsl:template match="document">
72 <!-- image cell -->
74 <td width="50" height="200" align="center">
75 <p>
76 <xsl:apply-templates select="@icon"/>
77 </p>
78 </td>
80 <td width="200"><p>
82 <xsl:apply-templates select="@title">
83 <xsl:with-param name="target" select="'mainframe'"/>
84 </xsl:apply-templates>
86 <xsl:apply-templates select="@description"/>
87 <xsl:apply-templates select="@author"/>
88 <xsl:apply-templates select="@create-date"/>
89 <xsl:apply-templates select="@update-date"/>
90 <xsl:apply-templates select="@filename"/>
91 <xsl:apply-templates select="@format"/>
92 <xsl:apply-templates select="@pages"/>
93 <xsl:apply-templates select="@size"/>
96 </p> </td>
98 </xsl:template>
100 </xsl:stylesheet>