source: freemind/trunk/fuentes/freemind/accessories/freemind2applet.xsl @ 68

Last change on this file since 68 was 68, checked in by jrpelegrina, 4 years ago

First release to Xenial

File size: 3.4 KB
Line 
1<?xml version="1.0" encoding="iso-8859-1"?>
2<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3                version="1.0">
4
5  <!--
6/*FreeMind - A Program for creating and viewing Mindmaps
7 *Copyright (C) 2006  Christian Foltin <christianfoltin@users.sourceforge.net>
8 *See COPYING for Details
9 *
10 *This program is free software; you can redistribute it and/or
11 *modify it under the terms of the GNU General Public License
12 *as published by the Free Software Foundation; either version 2
13 *of the License, or (at your option) any later version.
14 *
15 *This program is distributed in the hope that it will be useful,
16 *but WITHOUT ANY WARRANTY; without even the implied warranty of
17 *MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18 *GNU General Public License for more details.
19 *
20 *You should have received a copy of the GNU General Public License
21 *along with this program; if not, write to the Free Software
22 *Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
23 */
24     
25  -->
26
27  <xsl:output method="xml" doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" 
28    doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"/>
29 
30<!-- fc, 20.10.2004: The following parameter is set by freemind. -->
31<xsl:param name="destination_dir">./</xsl:param>
32<xsl:param name="area_code"></xsl:param>
33<xsl:param name="folding_type">html_export_no_folding</xsl:param>
34        <!-- possible values:
35                html_export_fold_all,
36                html_export_no_folding,
37                html_export_fold_currently_folded,
38                html_export_based_on_headings: this means, that approx. five levels are given, more deeper nodes are folded.
39                As of the time being, this parameter is not used.
40                -->
41<!--
42   
43    -->
44  <xsl:template match="/">
45    <html>
46      <head>
47        <!-- look if there is any node inside the map (there should never be none, but who knows?)
48             and take its text as the title -->
49        <xsl:choose>
50          <xsl:when test="/map/node/@TEXT">
51            <title><xsl:value-of select="/map/node/@TEXT" /></title>
52          </xsl:when>
53          <xsl:otherwise>
54            <title>FreeMind2HTML Mindmap</title>
55          </xsl:otherwise>
56        </xsl:choose>
57          <style type="text/css">
58/*<![CDATA[*/
59body { margin-left:0px; margin-right:0px; margin-top:0px; margin-bottom:0px; height:100% }
60html { height:100% }
61/*]]>*/
62          </style>
63      </head>
64                <body>
65        <xsl:element name="applet">
66            <xsl:attribute name="code">freemind.main.FreeMindApplet.class</xsl:attribute>
67            <xsl:attribute name="archive">./<xsl:value-of select="$destination_dir"/>freemindbrowser.jar</xsl:attribute>
68            <xsl:attribute name="width">100%</xsl:attribute>
69            <xsl:attribute name="height">100%</xsl:attribute>
70            <param name="type" value="application/x-java-applet;version=1.4"/>
71            <param name="scriptable" value="false"/>
72            <param name="modes" value="freemind.modes.browsemode.BrowseMode"/>
73            <xsl:element name="param">
74                <xsl:attribute name="name">browsemode_initial_map</xsl:attribute>
75                <xsl:attribute name="value">./<xsl:value-of select="$destination_dir"/>map.mm</xsl:attribute>
76            </xsl:element>
77            <param name="initial_mode" value="Browse"/>
78            <param name="selection_method" value="selection_method_direct"/>
79            <param name="separate_jvm" value="true"/>
80        </xsl:element>
81                </body>
82    </html>
83  </xsl:template>
84
85
86</xsl:stylesheet>
Note: See TracBrowser for help on using the repository browser.