Migrate hibernate xml annotation to annotations
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
% Formatvorlage f<>r Spezifikation
|
||||
\documentclass[a4paper,11pt,footsepline,headsepline]{scrbook}
|
||||
\usepackage{makeidx}
|
||||
\usepackage[german]{babel}
|
||||
\usepackage[pdftex,colorlinks=true,linkcolor=blue]{hyperref}
|
||||
%\usepackage{supertab}
|
||||
\usepackage[latin1]{inputenc}
|
||||
%\usepackage{marvosym}
|
||||
\usepackage[pdftex]{graphicx}
|
||||
% Bitte die folgenden Parameter jeweils korrekt eintragen
|
||||
\author{Wolfgang Radke}
|
||||
\title{Transforming Mindmaps in \LaTeX-Files}
|
||||
\begin{document} % Ab hier geht der eigentliche Text los
|
||||
\DeclareGraphicsExtensions{.jpg,.pdf,.mps,.png} % fur Paket graphicx
|
||||
% To include a graphics file
|
||||
%\includegraphics{filename_to_include}
|
||||
%\begin{abstract}
|
||||
%Dieses Dokument fasst die bisher erstellten Einzeldokumente zum Thema 'Smart Grid / Smart-Metering' zusammen.
|
||||
%\end{abstract}
|
||||
{\newpage\parskip0pt\tableofcontents\newpage}
|
||||
|
||||
\input{mm2latex_latin1_TEMPLATE.tex}
|
||||
\end{document}
|
||||
@@ -1,138 +0,0 @@
|
||||
<?xml version="1.0" standalone="no" ?>
|
||||
<!--
|
||||
: Convert from MindManager (c) to FreeMind ( ;) ).
|
||||
:
|
||||
: This code released under the GPL.
|
||||
: (http://www.gnu.org/copyleft/gpl.html)
|
||||
:
|
||||
: Christian Foltin, June, 2005
|
||||
:
|
||||
: $Id: mindmanager2mm.xsl,v 1.1.2.3.4.3 2007/10/17 19:54:36 christianfoltin Exp $
|
||||
:
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:ap="http://schemas.mindjet.com/MindManager/Application/2003"
|
||||
xmlns:cor="http://schemas.mindjet.com/MindManager/Core/2003"
|
||||
xmlns:pri="http://schemas.mindjet.com/MindManager/Primitive/2003"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns:xhtml="http://www.w3.org/1999/xhtml" >
|
||||
|
||||
<xsl:strip-space elements="*" />
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
|
||||
|
||||
<xsl:template match="/ap:Map">
|
||||
<map version="0.9.0">
|
||||
<xsl:apply-templates select="ap:OneTopic/ap:Topic"/>
|
||||
</map>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ap:Topic">
|
||||
<node>
|
||||
<xsl:attribute name="TEXT">
|
||||
<xsl:value-of select="./ap:Text/@PlainText" />
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="POSITION">
|
||||
<xsl:choose>
|
||||
<xsl:when test="ancestor-or-self::ap:Topic/ap:Offset/@CX > 0"><xsl:text>right</xsl:text></xsl:when>
|
||||
<xsl:otherwise><xsl:text>left</xsl:text></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:choose>
|
||||
<xsl:when test="./ap:Hyperlink">
|
||||
<xsl:attribute name="LINK">
|
||||
<xsl:value-of select="./ap:Hyperlink/@Url"/>
|
||||
</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:when test="./ap:Text/ap:Font/@Color">
|
||||
<xsl:attribute name="COLOR">
|
||||
<xsl:text>#</xsl:text><xsl:value-of
|
||||
select="substring(./ap:Text/ap:Font/@Color,3)"/>
|
||||
</xsl:attribute>
|
||||
</xsl:when>
|
||||
<xsl:when
|
||||
test="./ap:SubTopicShape/@SubTopicShape='urn:mindjet:Oval'">
|
||||
<xsl:attribute name="STYLE">
|
||||
<xsl:text>bubble</xsl:text>
|
||||
</xsl:attribute>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
<xsl:apply-templates select="./ap:NotesGroup" />
|
||||
<xsl:apply-templates select="./ap:SubTopics/ap:Topic" />
|
||||
<!-- <xsl:for-each select="./ap:SubTopics/ap:Topic">
|
||||
<xsl:sort select="(./ap:Offset/@CX) * -1"/>
|
||||
<xsl:apply-templates select="."/>
|
||||
</xsl:for-each> -->
|
||||
<xsl:apply-templates select="./ap:IconsGroup" />
|
||||
</node>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ap:NotesGroup">
|
||||
<xsl:element name="richcontent">
|
||||
<xsl:attribute name="TYPE">
|
||||
<xsl:text>NOTE</xsl:text>
|
||||
</xsl:attribute>
|
||||
<xsl:copy-of select="ap:NotesXhtmlData/xhtml:html"/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ap:IconsGroup">
|
||||
<xsl:apply-templates select="./ap:Icons" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ap:Icons">
|
||||
<xsl:apply-templates select="./ap:Icon" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ap:Icon[@xsi:type='ap:StockIcon']">
|
||||
<xsl:element name="icon">
|
||||
<xsl:attribute name="BUILTIN">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@IconType='urn:mindjet:SmileyAngry'">clanbomber</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:SmileyNeutral'">button_ok</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:SmileySad'">clanbomber</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:SmileyHappy'">ksmiletris</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:SmileyScreaming'">ksmiletris</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:ArrowRight'">forward</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:ArrowLeft'">back</xsl:when>
|
||||
<!-- <xsl:when test="@IconType='urn:mindjet:TwoEndArrow'">bell</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:ArrowDown'">bell</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:ArrowUp'">bell</xsl:when> -->
|
||||
<xsl:when test="@IconType='urn:mindjet:FlagGreen'">flag</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:FlagYellow'">flag</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:FlagPurple'">flag</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:FlagBlack'">flag</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:FlagBlue'">flag</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:FlagOrange'">flag</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:FlagRed'">flag</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:ThumbsUp'">button_ok</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Calendar'">bell</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Emergency'">messagebox_warning</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:OnHold'">knotify</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Stop'">button_cancel</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Prio1'">full-1</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Prio2'">full-2</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Prio3'">full-3</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Prio4'">full-4</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Prio5'">full-5</xsl:when>
|
||||
<!--
|
||||
<xsl:when test="@IconType='urn:mindjet:JudgeHammer'">bell</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Dollar'">bell</xsl:when>
|
||||
<xsl:when test="@IconType='urn:mindjet:Resource1'">bell</xsl:when>
|
||||
-->
|
||||
<!-- <xsl:when test="@IconType='urn:mindjet:Resource1'">button_ok</xsl:when> -->
|
||||
<xsl:otherwise>
|
||||
<xsl:text>messagebox_warning</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template match = "node()|@*" />
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,37 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="text" encoding="UTF-8"/>
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
<xsl:template name="linebreak">
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
<xsl:template match="map">
|
||||
<xsl:apply-templates select="child::node"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="node">
|
||||
<xsl:param name="commaCount">0</xsl:param>
|
||||
<xsl:if test="$commaCount > 0">
|
||||
<xsl:call-template name="writeCommas">
|
||||
<xsl:with-param name="commaCount" select="$commaCount"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
<xsl:call-template name="linebreak"/>
|
||||
<xsl:apply-templates select="child::node">
|
||||
<xsl:with-param name="commaCount" select="$commaCount + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
<xsl:template name="writeCommas">
|
||||
<xsl:param name="commaCount">0</xsl:param>
|
||||
<xsl:if test="$commaCount > 0">,
|
||||
<xsl:call-template name="writeCommas">
|
||||
<xsl:with-param name="commaCount" select="$commaCount - 1"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
||||
@@ -1,140 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<!--
|
||||
: This code released under the GPL.
|
||||
: (http://www.gnu.org/copyleft/gpl.html)
|
||||
Document : mindmap2html.xsl
|
||||
Created on : 01 February 2004, 17:17
|
||||
Author : joerg feuerhake joerg.feuerhake@free-penguin.org
|
||||
Description: transforms freemind mm format to html, handles crossrefs font declarations
|
||||
and colors. feel free to customize it while leaving the ancient authors
|
||||
mentioned. thank you
|
||||
ChangeLog:
|
||||
|
||||
See: http://freemind.sourceforge.net/
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="html" indent="no" encoding="ISO-8859-1" />
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:variable name="mapversion" select="map/@version"/>
|
||||
|
||||
<html>

|
||||
<head>

|
||||
<title><xsl:value-of select="map/node/@TEXT"/>//mm2html.xsl FreemindVersion:<xsl:value-of select="$mapversion"/></title>

|
||||
<style>
|
||||
body{
|
||||
font-size:10pt;
|
||||
color:rgb(0,0,0);
|
||||
backgound-color:rgb(255,255,255);
|
||||
font-family:sans-serif;
|
||||
}
|
||||
p.info{
|
||||
font-size:8pt;
|
||||
text-align:right;
|
||||
color:rgb(127,127,127);
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||


|
||||
<body>
|
||||


|
||||
|
||||
<p>
|
||||
<xsl:apply-templates/>
|
||||
</p>
|
||||
<p class="info">
|
||||
<xsl:value-of select="map/node/@TEXT"/>//mm2html.xsl FreemindVersion:<xsl:value-of select="$mapversion"/>
|
||||


|
||||
</p>
|
||||
</body>

|
||||
</html>

|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node">
|
||||
|
||||
<xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz</xsl:variable>
|
||||
<xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
|
||||
<xsl:variable name="nodetext" select="@TEXT"/>
|
||||
<xsl:variable name="thisid" select="@ID"/>
|
||||
<xsl:variable name="thiscolor" select="@COLOR"/>
|
||||
<xsl:variable name="fontface" select="font/@NAME"/>
|
||||
<xsl:variable name="fontbold" select="font/@BOLD"/>
|
||||
<xsl:variable name="fontitalic" select="font/@ITALIC"/>
|
||||
<xsl:variable name="fontsize" select="font/@SIZE"/>
|
||||
<xsl:variable name="target" select="arrowlink/@DESTINATION"/>
|
||||
|
||||
|
||||
|
||||
<ul>

|
||||
<li>

|
||||
|
||||
<xsl:if test="@ID != ''">
|
||||
<a>
|
||||
<xsl:attribute name="name">
|
||||
<xsl:value-of select="$thisid"/>
|
||||
</xsl:attribute>
|
||||
</a>

|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="arrowlink/@DESTINATION != ''">
|
||||
<a >
|
||||
<xsl:attribute name="style">
|
||||
<xsl:if test="$thiscolor != ''">
|
||||
<xsl:text>color:</xsl:text><xsl:value-of select="$thiscolor"/><xsl:text>;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontface != ''">
|
||||
<xsl:text>font-family:</xsl:text><xsl:value-of select="translate($fontface,$ucletters,$lcletters)"/><xsl:text>;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontsize != ''">
|
||||
<xsl:text>font-size:</xsl:text><xsl:value-of select="$fontsize"/><xsl:text>;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontbold = 'true'">
|
||||
<xsl:text>font-weight:bold;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontitalic = 'true'">
|
||||
<xsl:text>font-style:italic;</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:attribute name="href">
|
||||
<xsl:text>#</xsl:text><xsl:value-of select="$target"/>
|
||||
</xsl:attribute>
|
||||
|
||||
<xsl:value-of select="$nodetext"/>
|
||||
</a>

|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="not(arrowlink/@DESTINATION)">
|
||||
|
||||
<span>
|
||||
|
||||
<xsl:attribute name="style">
|
||||
<xsl:if test="$thiscolor != ''">
|
||||
<xsl:text>color:</xsl:text><xsl:value-of select="$thiscolor"/><xsl:text>;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontface != ''">
|
||||
<xsl:text>font-family:</xsl:text><xsl:value-of select="translate($fontface,$ucletters,$lcletters)"/><xsl:text>;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontsize != ''">
|
||||
<xsl:text>font-size:</xsl:text><xsl:value-of select="$fontsize"/><xsl:text>;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontbold = 'true'">
|
||||
<xsl:text>font-weight:bold;</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$fontitalic = 'true'">
|
||||
<xsl:text>font-style:italic;</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="$nodetext"/>

|
||||
</span>

|
||||
</xsl:if>
|
||||
|
||||
|
||||
<xsl:apply-templates/>
|
||||
</li>

|
||||
</ul>

|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,570 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*FreeMind - A Program for creating and viewing Mindmaps
|
||||
*Copyright (C) 2000-2008 Christian Foltin and others.
|
||||
*
|
||||
*See COPYING for Details
|
||||
*
|
||||
*This program is free software; you can redistribute it and/or
|
||||
*modify it under the terms of the GNU General Public License
|
||||
*as published by the Free Software Foundation; either version 2
|
||||
*of the License, or (at your option) any later version.
|
||||
*
|
||||
*This program is distributed in the hope that it will be useful,
|
||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
*GNU General Public License for more details.
|
||||
*
|
||||
*You should have received a copy of the GNU General Public License
|
||||
*along with this program; if not, write to the Free Software
|
||||
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
-->
|
||||
<xsl:stylesheet
|
||||
version="1.0" xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<!--
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
|
||||
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
|
||||
xmlns:math="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
|
||||
xmlns:ooo="http://openoffice.org/2004/office"
|
||||
xmlns:ooow="http://openoffice.org/2004/writer"
|
||||
xmlns:oooc="http://openoffice.org/2004/calc"
|
||||
xmlns:dom="http://www.w3.org/2001/xml-events"
|
||||
xmlns:xforms="http://www.w3.org/2002/xforms"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
-->
|
||||
<xsl:output method="xml" version="1.0" indent="no" encoding="UTF-8" omit-xml-declaration="yes"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
|
||||
<!-- the variable to be used to determine the maximum level of headings,
|
||||
it is defined by the attribute 'head-maxlevel' of the root node if it
|
||||
exists, else it's the default 3 (maximum possible is 5) -->
|
||||
<xsl:variable name="maxlevel">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//map/node/attribute[@NAME='tex-maxlevel']">
|
||||
<xsl:value-of select="//map/node/attribute[@NAME='tex-maxlevel']/@VALUE"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="'3'"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<!-- Define 'tex-img-float' how images are to be handled
|
||||
if defined but empty: show images inline
|
||||
every other value: used as position attribute in \begin{figure}[htb]'
|
||||
if undefined: Default 'htb'
|
||||
-->
|
||||
<xsl:variable name="imgfloat">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//map/node/attribute[@NAME='tex-img-float']">
|
||||
<xsl:value-of select="//map/node/attribute[@NAME='tex-img-float']/@VALUE"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="'htb'"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<xsl:template match="map">
|
||||
<!-- As to now we do not use anys header because this is to be included in a latex-book -->
|
||||
<xsl:apply-templates mode="heading"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- output each node as heading -->
|
||||
<xsl:template match="node" mode="heading">
|
||||
<xsl:param name="level" select="0"/>
|
||||
<xsl:choose> <!-- we change our mind if the NoHeading attribute is present -->
|
||||
<xsl:when test="attribute/@NAME = 'NoHeading'">
|
||||
<xsl:apply-templates select="." />
|
||||
</xsl:when>
|
||||
<xsl:when test="$level > $maxlevel"> <!-- Schon zu tief drin -->
|
||||
<xsl:apply-templates select="." />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="command">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$level='0'">
|
||||
<xsl:text>chapter</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$level='1'">
|
||||
<xsl:text>section</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$level='2'">
|
||||
<xsl:text>subsection</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$level='3'">
|
||||
<xsl:text>subsubsection</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$level='4'">
|
||||
<xsl:text>paragraph</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$level='3'">
|
||||
<xsl:text>subparagraph</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>Standard</xsl:text> <!-- we should never arrive here -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:text>
|
||||
\</xsl:text><xsl:value-of select="string($command)" /><xsl:text>{</xsl:text>
|
||||
<xsl:call-template name="textnode"> <!-- richcontent is not expected! -->
|
||||
<xsl:with-param name="style"></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:text>}</xsl:text>
|
||||
<!-- Label setzen, wenn definiert -->
|
||||
<xsl:if test="@ID != ''">
|
||||
<xsl:text>\label{</xsl:text><xsl:value-of select="@ID"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:call-template name="output-notecontent" />
|
||||
<xsl:apply-templates select="hook|@LINK"/>
|
||||
|
||||
<!-- if the level is higher than maxlevel, or if the current node is
|
||||
marked with LastHeading, we start outputting normal paragraphs,
|
||||
else we loop back into the heading mode -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="attribute/@NAME = 'LastHeading'">
|
||||
<xsl:apply-templates select="node" />
|
||||
</xsl:when>
|
||||
<xsl:when test="$level < $maxlevel">
|
||||
<xsl:apply-templates select="node" mode="heading">
|
||||
<xsl:with-param name="level" select="$level + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="node" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Output 'normal' nodes -->
|
||||
<xsl:template match="node">
|
||||
<xsl:variable name="nodesNextLevel" select="count(./node)" /> <!-- Anzahl unterlagerter Knoten feststellen -->
|
||||
<xsl:variable name="nodesThisLevel" select="count(../node) - count(../node//img) - count(../node//table)" /> <!-- Anzahl Knoten in diesem Level feststellen -->
|
||||
|
||||
<xsl:variable name="nodeType">
|
||||
<xsl:choose>
|
||||
<xsl:when test="./richcontent//table">
|
||||
<xsl:text>table</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="./richcontent//img">
|
||||
<xsl:text>img</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$nodesThisLevel > '1'">
|
||||
<xsl:text>item</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>text</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="id">
|
||||
<xsl:if test="@ID != ''">
|
||||
<xsl:value-of select="@ID"/>
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="format">
|
||||
<xsl:choose>
|
||||
<xsl:when test="attribute/@NAME='tex-format'">
|
||||
<xsl:value-of select="./attribute[@NAME='tex-format']/@VALUE"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$nodeType='img'">
|
||||
<xsl:text>scale=0.5</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$nodeType='img'">
|
||||
<xsl:text>lllll</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text>noformat</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:variable name="caption">
|
||||
<xsl:if test="attribute/@NAME='Caption'">
|
||||
<xsl:value-of select="./attribute[@NAME='Caption']/@VALUE"/>
|
||||
</xsl:if>
|
||||
</xsl:variable>
|
||||
|
||||
|
||||
<!-- Testausgaben
|
||||
<xsl:text>Testausgaben: </xsl:text><xsl:value-of select="$caption"/><xsl:text> - </xsl:text><xsl:value-of select="$format"/>
|
||||
-->
|
||||
<xsl:if test="$nodesThisLevel > '1' and position()='1'">
|
||||
<xsl:text>\begin{itemize}
|
||||
</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="$nodeType = 'item'">
|
||||
<xsl:text>\item </xsl:text>
|
||||
<xsl:if test="@ID != ''">
|
||||
<xsl:text>\label{</xsl:text><xsl:value-of select="@ID"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="id" select="$id" />
|
||||
<xsl:with-param name="format" select="$format" />
|
||||
<xsl:with-param name="caption" select="$caption" />
|
||||
</xsl:call-template>
|
||||
<xsl:text>\par
|
||||
</xsl:text> <!-- Absatz endet immer nach einer node -->
|
||||
|
||||
|
||||
<xsl:apply-templates select="node"/>
|
||||
<xsl:if test="$nodesThisLevel > '1' and position()=last()">
|
||||
<xsl:text>
|
||||
\end{itemize}
|
||||
</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:apply-templates select="hook|@LINK"/>
|
||||
<xsl:call-template name="output-notecontent" />
|
||||
|
||||
<xsl:if test="node/arrowlink">
|
||||
<xsl:text>siehe auch \ref{</xsl:text><xsl:value-of select="node/arrowlink/@destination"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="hook|@LINK">
|
||||
<xsl:text>Siehe auch \url{</xsl:text><xsl:value-of select="."/><xsl:text>}</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<!-- <xsl:template match="hook[@NAME='accessories/plugins/NodeNote.properties']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="./text">
|
||||
<text:p text:style-name="Standard">
|
||||
<xsl:value-of select="./text"/>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node" mode="childoutputOrdered">
|
||||
<xsl:param name="nodeText"></xsl:param>
|
||||
<text:ordered-list text:style-name="L1"
|
||||
text:continue-numbering="true">
|
||||
<text:list-item>
|
||||
<xsl:apply-templates select=".." mode="childoutputOrdered">
|
||||
<xsl:with-param name="nodeText"><xsl:copy-of
|
||||
select="$nodeText"/></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:list-item>
|
||||
</text:ordered-list>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="map" mode="childoutputOrdered">
|
||||
<xsl:param name="nodeText"></xsl:param>
|
||||
<xsl:copy-of select="$nodeText"/>
|
||||
</xsl:template>
|
||||
-->
|
||||
<xsl:template match="node" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:apply-templates select=".." mode="depthMesurement">
|
||||
<xsl:with-param name="depth" select="$depth + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
<xsl:template match="map" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:value-of select="$depth"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Give links out.
|
||||
<xsl:template match="@LINK">
|
||||
<xsl:element name="text:a" namespace="text">
|
||||
<xsl:attribute namespace="xlink" name="xlink:type">simple</xsl:attribute>
|
||||
<xsl:attribute namespace="xlink" name="xlink:href">
|
||||
-->
|
||||
<!-- Convert relative links, such that they start with "../".
|
||||
This is due to the fact, that OOo calculates all relative links from the document itself! -->
|
||||
<!--
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with(.,'/') or contains(.,':')"> -->
|
||||
<!-- absolute link -->
|
||||
<!--
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
-->
|
||||
<!-- relative link, put "../" at the front -->
|
||||
<!--
|
||||
<xsl:text>../</xsl:text><xsl:value-of select="."/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
-->
|
||||
|
||||
<xsl:template name="output-nodecontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<xsl:param name="id" /> <!-- id for label -->
|
||||
<xsl:param name="format" /><!-- Formatting -->
|
||||
<xsl:param name="caption" /><!-- title line -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="richcontent[@TYPE='NODE']">
|
||||
<xsl:apply-templates select="richcontent[@TYPE='NODE']/html/body" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"/>
|
||||
<xsl:with-param name="id" select="$id"/>
|
||||
<xsl:with-param name="format" select="$format"/>
|
||||
<xsl:with-param name="caption" select="$caption" />
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="textnode" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template> <!-- xsl:template name="output-nodecontent" -->
|
||||
|
||||
<xsl:template name="output-notecontent">
|
||||
<xsl:if test="richcontent[@TYPE='NOTE']">
|
||||
<xsl:apply-templates select="richcontent[@TYPE='NOTE']/html/body" mode="richcontent" >
|
||||
<xsl:with-param name="style">Standard</xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template> <!-- xsl:template name="output-note" -->
|
||||
|
||||
|
||||
<xsl:template name="textnode">
|
||||
<!--
|
||||
<xsl:variable name="anzahl" select="count(./node)" /> Anzahl unterlagerter Knoten feststellen
|
||||
<xsl:variable name="anzahlEigene" select="count(../node)" /> Anzahl Knoten auf eigener Ebene feststellen
|
||||
<xsl:text>(textnode-anfang </xsl:text><xsl:value-of select="$anzahlEigene" /><xsl:text>/</xsl:text><xsl:value-of select="$anzahl" /><xsl:text>)</xsl:text>
|
||||
-->
|
||||
<xsl:call-template name="format_text">
|
||||
<xsl:with-param name="nodetext">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@TEXT = ''"><xsl:text> </xsl:text></xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="@TEXT" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<!-- <xsl:text>(textnode-ende)</xsl:text> -->
|
||||
</xsl:template> <!-- xsl:template name="textnode" -->
|
||||
|
||||
|
||||
<!-- replace ASCII line breaks through ODF line breaks (br) -->
|
||||
<xsl:template name="format_text">
|
||||
<xsl:param name="nodetext"></xsl:param>
|
||||
<xsl:if test="string-length(substring-after($nodetext,'
')) = 0">
|
||||
<xsl:value-of select="$nodetext" />
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(substring-after($nodetext,'
')) > 0">
|
||||
<xsl:value-of select="substring-before($nodetext,'
')" />
|
||||
<xsl:text>\par{}</xsl:text>
|
||||
<xsl:call-template name="format_text">
|
||||
<xsl:with-param name="nodetext">
|
||||
<xsl:value-of select="substring-after($nodetext,'
')" />
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template> <!-- xsl:template name="format_text" -->
|
||||
|
||||
<xsl:template match="body" mode="richcontent">
|
||||
<xsl:param name="id" /> <!-- id for label -->
|
||||
<xsl:param name="format" /><!-- Formatting -->
|
||||
<xsl:param name="caption" /><!-- Title -->
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<!-- <xsl:copy-of select="string(.)"/> -->
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
<xsl:with-param name="id" select="$id" />
|
||||
<xsl:with-param name="format" select="$format" />
|
||||
<xsl:with-param name="caption" select="$caption" />
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="text()" mode="richcontent"> <xsl:copy-of select="string(.)"/></xsl:template>
|
||||
|
||||
<xsl:template match="table" mode="richcontent">
|
||||
<xsl:param name="id" /> <!-- id for label -->
|
||||
<xsl:param name="format" /><!-- Formatting -->
|
||||
<xsl:text>\par\begin{tabular}{</xsl:text>
|
||||
<!-- <xsl:value-of select="tr/count(td)" /> -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="$format=''">
|
||||
<xsl:text>|llllll|}\hline
|
||||
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="$format" />
|
||||
<xsl:text>}\hline
|
||||
</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:apply-templates mode="richcontent" />
|
||||
<xsl:text>\end{tabular}
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="tr" mode="richcontent">
|
||||
<xsl:apply-templates mode="richcontent" />
|
||||
<xsl:text>\\ \hline
|
||||
</xsl:text> <!-- Record separator -->
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="td" mode="richcontent">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent" >
|
||||
</xsl:apply-templates>
|
||||
<!-- <xsl:value-of disable-output-escaping="yes" select="." /> -->
|
||||
<xsl:if test="position() != last()"><xsl:text disable-output-escaping="yes">&</xsl:text></xsl:if> <!-- Field separator -->
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
<xsl:template match="br" mode="richcontent">
|
||||
<xsl:text>\par{}</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="b" mode="richcontent">
|
||||
<xsl:text>{\bf </xsl:text><xsl:value-of select="." /><xsl:text>}</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="i" mode="richcontent">
|
||||
<xsl:text>\emph{</xsl:text><xsl:value-of select="." /><xsl:text>}</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="img" mode="richcontent">
|
||||
<xsl:param name="id"/> <!-- id for label -->
|
||||
<xsl:param name="format" select="'scale=0.5'"/><!-- Formatting -->
|
||||
<xsl:param name="caption" select="'No Caption defined in Mindmap'"/><!-- Formatting -->
|
||||
<xsl:if test="$imgfloat=''" >
|
||||
<xsl:text>\includegraphics[scale=0.5]{</xsl:text><xsl:value-of select="./@src"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:if test="$imgfloat!=''" >
|
||||
<xsl:text>
|
||||
\begin{figure}[</xsl:text><xsl:value-of select="$imgfloat"/><xsl:text>]
|
||||
\includegraphics[</xsl:text><xsl:value-of select="$format"/><xsl:text>]{</xsl:text><xsl:value-of select="./@src"/><xsl:text>}
|
||||
\caption{</xsl:text><xsl:value-of select="$caption"/><xsl:text>}
|
||||
\label{</xsl:text><xsl:value-of select="$id"/><xsl:text>}
|
||||
\end{figure}
|
||||
</xsl:text>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="u" mode="richcontent">
|
||||
<xsl:text>\underline{</xsl:text><xsl:value-of select="." /><xsl:text>}</xsl:text>
|
||||
</xsl:template>
|
||||
<xsl:template match="ul" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<xsl:text>\begin{itemize}
|
||||
</xsl:text>
|
||||
<xsl:apply-templates select="text()|*" mode="richcontentul"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
<xsl:text>\end{itemize}
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="ol" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<xsl:text>\begin{enumerate}
|
||||
</xsl:text>
|
||||
<xsl:apply-templates select="text()|*" mode="richcontentol"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
<xsl:text>\end{enumerate}
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="li" mode="richcontentul">
|
||||
<xsl:text>\item </xsl:text><xsl:value-of select="@text" /><xsl:text>
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
<xsl:template match="li" mode="richcontentol">
|
||||
<xsl:text>\item </xsl:text><xsl:value-of select="@text" /><xsl:text>
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Zu kompliziert
|
||||
<xsl:template match="li" mode="richcontentul">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P1">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</xsl:template>
|
||||
<xsl:template match="li" mode="richcontentol">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P2">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</xsl:template>
|
||||
-->
|
||||
<!-- Table:
|
||||
<table:table table:name="Table1" table:style-name="Table1">
|
||||
<table:table-column table:style-name="Table1.A" table:number-columns-repeated="3"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Table1.A1" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T11</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.A1" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T21</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C1" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T31</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T12</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T22</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T32</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T13</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T23</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T32</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
-->
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,268 +0,0 @@
|
||||
<map version="0.9.0">
|
||||
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
|
||||
<node CREATED="1216974513042" ID="ID_833600903" MODIFIED="1238925165356" TEXT="Example of map exportable to LaTex">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
The root node is exported as document title (with format 'chapter').
|
||||
</p>
|
||||
<p>
|
||||
Attributes of the root node are used as global document properties if they have the prefix "tex-" in their name. Acceptable names are maxlevel and img-float.
|
||||
</p>
|
||||
<p>
|
||||
The attribute "tex-maxlevel" is used to define the maximum of nodes until which 'Heading' styles are used. If the attribute is not defined, the default value is 3. The maximum possible is 5 (section, subsection, subsubsection, paragraph,subparagraph.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<attribute_layout NAME_WIDTH="91" VALUE_WIDTH="91"/>
|
||||
<attribute NAME="tex-maxlevel" VALUE="3"/>
|
||||
<attribute NAME="tex-img-float" VALUE="htb"/>
|
||||
<node CREATED="1238918404359" ID="ID_1934280567" MODIFIED="1238918407890" POSITION="right" TEXT="Introduction">
|
||||
<node CREATED="1238917785012" ID="ID_1920085495" MODIFIED="1238918735994" TEXT="Purpose">
|
||||
<attribute NAME="LastHeading" VALUE=""/>
|
||||
<node CREATED="1238917797246" ID="ID_112127867" MODIFIED="1238920553674" TEXT="I often use freemind to make up my mind about how to tackle a certain task. When I'm done thinking I want to document my results. For this I use HTML, Word or LaTeX. Obviously I'd like to see images and all the formatting I have done"/>
|
||||
<node CREATED="1238917902916" ID="ID_1286589065" MODIFIED="1238918298236" TEXT="For HTML and Word I found some nice Templates, LaTeX though lacked the images and formatted text. Fortunalety the authors of the template for word (Naoki Nose, 2006, and Eric Lavarde, 2008) did I very good job in analyzing the XML-Data."/>
|
||||
<node CREATED="1238918299470" ID="ID_286082551" MODIFIED="1238920599314" TEXT="I decided to stick to their general setup and used some of their logic, especially for the attributes. This should help all those people, who want to use several output channels at the same time."/>
|
||||
</node>
|
||||
<node CREATED="1238918413109" ID="ID_1545289664" MODIFIED="1238918450202" TEXT="How to create a LaTex-File">
|
||||
<node CREATED="1238918472358" ID="ID_1433056762" MODIFIED="1238919043256" TEXT="Rule 1: Creating the Mindmap">
|
||||
<node CREATED="1238918487404" ID="ID_172643764" MODIFIED="1238918528341" TEXT="Do not think about LaTeX when setting up your Mindmap, think about the problem you want to solve or the subject you want to write about"/>
|
||||
<node CREATED="1238918850055" ID="ID_564855825" MODIFIED="1238918876961" TEXT="You may use the character set latin1 (Germans: Umlaute sind möglich!)"/>
|
||||
</node>
|
||||
<node CREATED="1238918536638" ID="ID_763391417" MODIFIED="1238919058100" TEXT="Rule 2: Creating the Environment">
|
||||
<node CREATED="1238918615480" ID="ID_1647968502" MODIFIED="1238918682245" TEXT="Create a Masterfile with LaTeX-Code like Header, pagestyle etc"/>
|
||||
<node CREATED="1238918683479" ID="ID_1758774155" MODIFIED="1238918801744" TEXT="Add an 'input' or 'include'-command at the spot, where you want your mindmap to appear."/>
|
||||
</node>
|
||||
<node CREATED="1238919017053" ID="ID_405215367" MODIFIED="1238919072287" TEXT="Rule 3: Exporting the Mindmap">
|
||||
<node CREATED="1238918804228" ID="ID_1695632461" MODIFIED="1238919010319" TEXT="Export your mindmap via XSL-Export using this XSL-Stylesheet ('mm2latex.xsl')"/>
|
||||
</node>
|
||||
<node CREATED="1238919085084" ID="ID_294996980" MODIFIED="1238919504375" TEXT="Rule 4: Finishing Touches">
|
||||
<node CREATED="1238919129224" ID="ID_169878621" MODIFIED="1238919245410" TEXT="Compile your masterfile, there may be some TeX-related errors, that you may have to take care of. Usually there a these groups">
|
||||
<node CREATED="1238919249613" ID="ID_1347745562" MODIFIED="1238919321018" TEXT="Mask any special character that is not allowed in LaTeX (Ampersand, Dollar, Percent)"/>
|
||||
<node CREATED="1238919321706" ID="ID_766320487" MODIFIED="1238919482282" TEXT="Use the attribute 'Noheading' if a single node is not supposed to be a section, subsection or subsubsection">
|
||||
<arrowlink DESTINATION="ID_843043724" ENDARROW="Default" ENDINCLINATION="677;0;" ID="Arrow_ID_1401678800" STARTARROW="None" STARTINCLINATION="677;0;"/>
|
||||
</node>
|
||||
<node CREATED="1238919386408" ID="ID_1409718510" MODIFIED="1238919485250" TEXT="Use the attribute 'LastHeading' if all nodes below this one are meant to be text (Look a the nodes 'Purpose' and 'How to ..' in this section)">
|
||||
<arrowlink DESTINATION="ID_1342553402" ENDARROW="Default" ENDINCLINATION="933;0;" ID="Arrow_ID_554920267" STARTARROW="None" STARTINCLINATION="933;0;"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1238919516703" ID="ID_1251654569" MODIFIED="1238919561093" TEXT="For your images you may want to define the size/format or a Caption">
|
||||
<arrowlink DESTINATION="ID_798981776" ENDARROW="Default" ENDINCLINATION="255;0;" ID="Arrow_ID_1788752982" STARTARROW="None" STARTINCLINATION="255;0;"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216974528086" ID="ID_1996762094" MODIFIED="1216974692827" POSITION="right" TEXT="Chapter 1">
|
||||
<node CREATED="1216974536680" ID="ID_418841879" MODIFIED="1216974708501" TEXT="Chapter 1.1">
|
||||
<node CREATED="1216974544352" ID="ID_1231871458" MODIFIED="1238926367864" TEXT="Chapter 1.1.1">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
This is a note belonging to Chapter 1.1.1, such notes are exported with style "Body Text" but any formatting,
|
||||
</p>
|
||||
<p>
|
||||
or even new lines are lost. That's sad but that's reality.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<node CREATED="1216974561800" ID="ID_35441158" MODIFIED="1216974730363" TEXT="Chapter 1.1.1.1">
|
||||
<node CREATED="1216974620653" ID="ID_1657992058" MODIFIED="1216991329486" TEXT="Text wich is"/>
|
||||
<node CREATED="1216974660607" ID="ID_1076025767" MODIFIED="1216991352258" TEXT="deeper than the"/>
|
||||
<node CREATED="1216974664012" ID="ID_1612257345" MODIFIED="1216991345298" TEXT="header-maxlevel attribute"/>
|
||||
<node CREATED="1216974667197" ID="ID_1877504467" MODIFIED="1216991366458" TEXT="is exported with "Normal" style."/>
|
||||
</node>
|
||||
<node CREATED="1216974674739" ID="ID_843043724" MODIFIED="1238919482282" TEXT="This nodes will be exported as a normal paragraph">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
By marking a node with the attribute 'NoHeading' (the value is not important), you make sure that this chapter will be exported as normal paragraph, together with all nodes below.
|
||||
</p>
|
||||
</body>
|
||||
</html></richcontent>
|
||||
<attribute_layout NAME_WIDTH="62" VALUE_WIDTH="91"/>
|
||||
<attribute NAME="NoHeading" VALUE=""/>
|
||||
<node CREATED="1217604758817" ID="ID_863632446" MODIFIED="1217604766680" TEXT="Like also this one"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216974696283" ID="ID_1342553402" MODIFIED="1238926368958" TEXT="Chapter 1.2 - mark a header as last heading">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
By marking a node with the attribute 'LastHeading' (the value is not important), you make sure that this chapter will be exported as the last heading in the hierarchy, i.e. all nodes below the chapter will be exported as normal paragraphs.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<attribute_layout NAME_WIDTH="69" VALUE_WIDTH="91"/>
|
||||
<attribute NAME="LastHeading" VALUE=""/>
|
||||
<node CREATED="1217603132140" ID="ID_1323406791" MODIFIED="1217603515832" TEXT="this node becomes a normal paragraph
even though it's above the defaultlevel">
|
||||
<node CREATED="1217603804767" ID="ID_630190221" MODIFIED="1217603812619" TEXT="And this one as well"/>
|
||||
</node>
|
||||
<node CREATED="1217603814001" ID="ID_1067471434" MODIFIED="1217603819328" TEXT="And also this one"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216991067197" ID="ID_334419387" MODIFIED="1238756143265" POSITION="right" TEXT="Chapter 2: richcontent nodes">
|
||||
<attribute NAME="LastHeading" VALUE=""/>
|
||||
<node CREATED="1238756415812" ID="ID_983007227" MODIFIED="1238756417593" TEXT="Images">
|
||||
<node CREATED="1238741133718" ID="ID_1878632215" MODIFIED="1238741179593" TEXT="Images are exported depending on the value of tex-img-float either as inline or as float-value">
|
||||
<node CREATED="1238741848593" ID="ID_798981776" MODIFIED="1238919609311">
|
||||
<richcontent TYPE="NODE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<img src="show.png" />
|
||||
</body>
|
||||
</html></richcontent>
|
||||
<attribute NAME="Caption" VALUE="Title of Image"/>
|
||||
<attribute NAME="tex-format" VALUE="scale=0.7"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1238756387328" ID="ID_379489595" MODIFIED="1238756429093" TEXT="There a several attributes which can be used with Images:">
|
||||
<node CREATED="1238756457906" ID="ID_1347482209" MODIFIED="1238756460984" TEXT="Caption">
|
||||
<node CREATED="1238756492640" ID="ID_502354102" MODIFIED="1238756535453" TEXT="the content of this attribute will be used as caption of the image (in float-mode)"/>
|
||||
</node>
|
||||
<node CREATED="1238756537718" ID="ID_596764817" MODIFIED="1238756541531" TEXT="tex-format">
|
||||
<node CREATED="1238756543859" ID="ID_536843546" MODIFIED="1238922177485" TEXT="the content of this attribute is used as parameter of options-part of includegraphics[option]{image}"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1238756989984" ID="ID_346917431" MODIFIED="1238757024093" TEXT="References to images are in the same form that you used in your Mindmap."/>
|
||||
</node>
|
||||
<node CREATED="1238741185046" ID="ID_616977104" MODIFIED="1238741203187" TEXT="text in Nodes can be formatted"/>
|
||||
<node CREATED="1238741259703" ID="ID_41096153" MODIFIED="1238741343531">
|
||||
<richcontent TYPE="NODE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Tables look like this
|
||||
</p>
|
||||
</body>
|
||||
</html></richcontent>
|
||||
<node CREATED="1238741346375" ID="ID_750910605" MODIFIED="1238926381364">
|
||||
<richcontent TYPE="NODE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<table border="0" style="border-left-width: 0; border-top-width: 0; border-right-width: 0; width: 80%; border-bottom-width: 0; border-style: solid">
|
||||
<tr>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
<font size="5">Head 1</font>
|
||||
</p>
|
||||
</td>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
<font size="5">Head 2</font>
|
||||
</p>
|
||||
</td>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
<font size="5">Head 3</font>
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
data 1 contains <b>bold,</b> which will  be shown
|
||||
</p>
|
||||
</td>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
data 2 contains <i>italics</i>, which will  be shown
|
||||
</p>
|
||||
</td>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
data 3 contains <u>underscore</u> and so on, which will  be shown (yet)
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
more text
|
||||
</p>
|
||||
</td>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
more text
|
||||
</p>
|
||||
</td>
|
||||
<td valign="top" style="border-left-width: 1; border-right-width: 1; border-top-width: 1; width: 33%; border-bottom-width: 1; border-style: solid">
|
||||
<p style="margin-left: 1; margin-bottom: 1; margin-right: 1; margin-top: 1">
|
||||
more text
|
||||
</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<attribute_layout VALUE_WIDTH="142"/>
|
||||
<attribute NAME="tex-format" VALUE="|p{3cm}|p{3cm}|p{3cm}|"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216809914482" ID="ID_1308741003" MODIFIED="1238922344578" POSITION="right" TEXT="Chapter 3 - how to export a mindmap to latex ?">
|
||||
<attribute NAME="LastHeading" VALUE=""/>
|
||||
<node CREATED="1216809917636" ID="ID_199484608" MODIFIED="1216991907919" TEXT="Chapter 3.1 - create a map following the notes and hints expressed in this example map"/>
|
||||
<node CREATED="1216809921221" ID="ID_1681718272" MODIFIED="1238922302250" TEXT="Chapter 3.2 - export the map using the File $\leftarrow$ Export $\rightarrow$ Using XSLT... menu">
|
||||
<node CREATED="1216826868748" ID="ID_1660904657" MODIFIED="1238922383046" TEXT="Chapter 3.2.1 - select the mm2latex.XSL file from the accessories directory in the FreeMind base directory."/>
|
||||
<node CREATED="1216826924521" ID="ID_1561412985" MODIFIED="1238756702703" TEXT="Chapter 3.2.2 - export to a file with a name ending in .tex"/>
|
||||
</node>
|
||||
<node CREATED="1216826940554" ID="ID_769680777" MODIFIED="1238756755734" TEXT="Chapter 3.3 - use latex">
|
||||
<node CREATED="1238756791781" ID="ID_28353139" MODIFIED="1238922464093">
|
||||
<richcontent TYPE="NODE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
The file produced by this XSL-Sheet <b>does not contain</b> any Header information. it is intended as a part which can be included into an existing TeX master file.
|
||||
</p>
|
||||
<p>
|
||||
You can either use input{filename.tex} to pull it into tex or use include{filename}
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216827072099" ID="ID_785390572" MODIFIED="1216991949417" TEXT="Chapter 3.4 - you're done, enjoy!"/>
|
||||
</node>
|
||||
<node CREATED="1216991668227" ID="ID_1657343694" MODIFIED="1238757042812" POSITION="right" TEXT="Best Practices">
|
||||
<node CREATED="1238757044593" ID="ID_1921364396" MODIFIED="1238757051203" TEXT="Filesystem">
|
||||
<node CREATED="1238757053078" ID="ID_1576776962" MODIFIED="1238757069531" TEXT="Think about how you organize your files.">
|
||||
<node CREATED="1238757071406" ID="ID_135148380" MODIFIED="1238757107359" TEXT="I have one main directory 'mindmaps', which contains the following data">
|
||||
<node CREATED="1238757109109" ID="ID_1235469122" MODIFIED="1238757115875" TEXT="All Mindmaps"/>
|
||||
<node CREATED="1238757116484" ID="ID_1972117067" MODIFIED="1238757144015" TEXT="A subdirectory 'pics', which contains all the images I use"/>
|
||||
<node CREATED="1238920675891" ID="ID_1661088963" MODIFIED="1238920704235" TEXT="a subdirectory 'icons' which contains the icons freemind uses"/>
|
||||
<node CREATED="1238757144546" ID="ID_1358898242" MODIFIED="1238920672126" TEXT="a subdirectory tex, which contains the created Tex-Files"/>
|
||||
<node CREATED="1238920709453" ID="ID_1948667697" MODIFIED="1238920742969" TEXT="The Master tex file(s)"/>
|
||||
</node>
|
||||
<node CREATED="1238920749734" ID="ID_985841966" MODIFIED="1238920849577" TEXT="This setup allows me to use some XML-Tools (like saxon) to parse the directory and update a tex-File, when the correspondig mindmap has been changed"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1238920859373" ID="ID_527613947" MODIFIED="1238920864436" TEXT="More to come ..."/>
|
||||
</node>
|
||||
</node>
|
||||
</map>
|
||||
@@ -1,260 +0,0 @@
|
||||
<?xml version='1.0'?>
|
||||
|
||||
|
||||
<!--
|
||||
: This code released under the GPL.
|
||||
: (http://www.gnu.org/copyleft/gpl.html)
|
||||
Document : mm2latexarticl.xsl
|
||||
Created on : 01 February 2004, 17:17
|
||||
Author : joerg feuerhake joerg.feuerhake@free-penguin.org
|
||||
Description: transforms freemind mm format to latex scrartcl, handles crossrefs ignores the rest. feel free to customize it while leaving the ancient authors mentioned. thank you
|
||||
Thanks to: Tayeb.Lemlouma@inrialpes.fr for writing the LaTeX escape scripts and giving inspiration
|
||||
ChangeLog:
|
||||
|
||||
See: http://freemind.sourceforge.net/
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
|
||||
<xsl:output omit-xml-declaration="yes" />
|
||||
|
||||
<xsl:template match="map">
|
||||
|
||||
<xsl:text>
|
||||
\documentclass[a4paper,12pt,single,pdftex]{scrartcl}
|
||||
\usepackage{ngerman}
|
||||
\usepackage{color}
|
||||
\usepackage{html}
|
||||
\usepackage{times}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{fancyheadings}
|
||||
\usepackage{hyperref}
|
||||
\setlength{\parindent}{0.6pt}
|
||||
\setlength{\parskip}{0.6pt}
|
||||
\title{</xsl:text><xsl:value-of select="node/@TEXT"/><xsl:text>}
|
||||
</xsl:text>
|
||||
<!-- ======= Document Begining ====== -->
|
||||
<xsl:text>
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
\newpage
|
||||
|
||||
</xsl:text>
|
||||
<!-- ======= Heading ====== -->
|
||||
<xsl:apply-templates select="Heading"/>
|
||||
<xsl:apply-templates select="node"/>
|
||||
|
||||
|
||||
<xsl:text>
|
||||
\newpage
|
||||
%\tableofcontents
|
||||
|
||||
\end{document}
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- ======= Body ====== -->
|
||||
|
||||
<!-- Sections Processing -->
|
||||
<xsl:template match="node">
|
||||
<xsl:variable name="target" select="arrowlink/@DESTINATION"/>
|
||||
|
||||
<xsl:if test="@ID != ''">
|
||||
<xsl:text>\label{</xsl:text><xsl:value-of select="@ID"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="(count(ancestor::node())-2)=1">
|
||||
<xsl:text>\section</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
|
||||
</xsl:text></xsl:if>
|
||||
<xsl:if test="(count(ancestor::node())-2)=2">
|
||||
<xsl:text>\subsection</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
|
||||
</xsl:text></xsl:if>
|
||||
|
||||
<xsl:if test="(count(ancestor::node())-2)=3">
|
||||
<xsl:text>\subsubsection</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
|
||||
</xsl:text></xsl:if>
|
||||
|
||||
<xsl:if test="arrowlink/@DESTINATION != ''">
|
||||
<xsl:text>\ref{</xsl:text>
|
||||
<xsl:value-of select="arrowlink/@DESTINATION"/>
|
||||
<xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="(count(ancestor::node())-2)=4">
|
||||
<xsl:text>\paragraph</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
|
||||
</xsl:text>
|
||||
<xsl:if test="current()/node">
|
||||
<xsl:call-template name="itemization">
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<!--<xsl:if test="(count(ancestor::node())-2)>4">
|
||||
|
||||
<xsl:call-template name="itemization"/>
|
||||
|
||||
</xsl:if>-->
|
||||
|
||||
<xsl:if test="5 > (count(ancestor::node())-2)">
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="itemization">
|
||||
<xsl:param name="i" select="current()/node" />
|
||||
|
||||
<xsl:text>\begin{itemize}
|
||||
</xsl:text>
|
||||
<xsl:for-each select="$i">
|
||||
|
||||
<xsl:if test="@ID != ''">
|
||||
<xsl:text>\label{</xsl:text><xsl:value-of select="@ID"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:text>\item </xsl:text>
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
|
||||
<xsl:if test="arrowlink/@DESTINATION != ''">
|
||||
<xsl:text>\ref{</xsl:text>
|
||||
<xsl:value-of select="arrowlink/@DESTINATION"/>
|
||||
<xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
|
||||
</xsl:for-each >
|
||||
|
||||
<xsl:if test="$i/node">
|
||||
<xsl:call-template name="itemization">
|
||||
<xsl:with-param name="i" select="$i/node"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:text>\end{itemize}
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
<!--Text Process -->
|
||||
<!--<xsl:apply-templates select="Body/node()"/>-->
|
||||
|
||||
<!-- End of Sections Processing -->
|
||||
|
||||
|
||||
|
||||
<!-- LaTeXChar: A recursif function that generates LaTeX special characters -->
|
||||
<xsl:template name="LaTeXChar">
|
||||
<xsl:param name="i"/>
|
||||
<xsl:param name="l"/>
|
||||
|
||||
<xsl:variable name="SS">
|
||||
<xsl:value-of select="substring(normalize-space(),$l - $i + 1,1)" />
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:if test="$i > 0">
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$SS = 'é'">
|
||||
<xsl:text>\'{e}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ê'">
|
||||
<xsl:text>\^{e}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'è'">
|
||||
<xsl:text>\`{e}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ï'">
|
||||
<xsl:text>\"{\i}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'î'">
|
||||
<xsl:text>\^{i}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'à'">
|
||||
<xsl:text>\`{a}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'á'">
|
||||
<xsl:text>\'{a}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'â'">
|
||||
<xsl:text>\^{a}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ç'">
|
||||
<xsl:text>\c{c}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ô'">
|
||||
<xsl:text>\^{o}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ù'">
|
||||
<xsl:text>\`{u}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'û'">
|
||||
<xsl:text>\^{u}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = '|'">
|
||||
<xsl:text>$|$</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = '_'">
|
||||
<xsl:text>\_</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="$SS"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:text></xsl:text>
|
||||
|
||||
<xsl:call-template name="LaTeXChar">
|
||||
<xsl:with-param name="i" select="$i - 1"/>
|
||||
<xsl:with-param name="l" select="$l"/>
|
||||
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
<!-- End of LaTeXChar template -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Enumerates Process -->
|
||||
<xsl:template match="Enumerates">
|
||||
<xsl:text>
|
||||
\begin{enumerate}</xsl:text>
|
||||
<xsl:for-each select="Item">
|
||||
<xsl:text>
|
||||
\item </xsl:text>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:text>
|
||||
\end{enumerate}
|
||||
</xsl:text>
|
||||
</xsl:template> <!--Enumerates Process -->
|
||||
|
||||
<!-- Items Process -->
|
||||
<xsl:template match="Items">
|
||||
<xsl:text>
|
||||
\begin{itemize}</xsl:text>
|
||||
<xsl:for-each select="node">
|
||||
<xsl:text>
|
||||
\item </xsl:text>
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
</xsl:for-each>
|
||||
<xsl:text>
|
||||
\end{itemize}
|
||||
</xsl:text>
|
||||
</xsl:template> <!--Items Process -->
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
@@ -1,251 +0,0 @@
|
||||
<?xml version='1.0'?>
|
||||
|
||||
<!--
|
||||
: This code released under the GPL.
|
||||
: (http://www.gnu.org/copyleft/gpl.html)
|
||||
Document : mm2latexarticl.xsl
|
||||
Created on : 01 February 2004, 17:17
|
||||
Author : joerg feuerhake joerg.feuerhake@free-penguin.org
|
||||
Description: transforms freemind mm format to latex scrartcl, handles crossrefs ignores the rest. feel free to customize it while leaving the ancient authors
|
||||
mentioned. thank you
|
||||
Thanks to: Tayeb.Lemlouma@inrialpes.fr for writing the LaTeX escape scripts and giving inspiration
|
||||
ChangeLog:
|
||||
|
||||
See: http://freemind.sourceforge.net/
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl='http://www.w3.org/1999/XSL/Transform' version='1.0'>
|
||||
<xsl:output omit-xml-declaration="yes" />
|
||||
|
||||
<xsl:template match="map">
|
||||
|
||||
<xsl:text>
|
||||
\documentclass[a4paper,12pt,single,pdftex]{scrbook}
|
||||
\usepackage{ngerman}
|
||||
\usepackage{color}
|
||||
\usepackage{html}
|
||||
\usepackage{times}
|
||||
\usepackage{graphicx}
|
||||
\usepackage{fancyheadings}
|
||||
\usepackage{hyperref}
|
||||
\setlength{\parindent}{0.6pt}
|
||||
\setlength{\parskip}{0.6pt}
|
||||
\title{</xsl:text><xsl:value-of select="node/@TEXT"/><xsl:text>}
|
||||
</xsl:text>
|
||||
<!-- ======= Document Begining ====== -->
|
||||
<xsl:text>
|
||||
|
||||
\begin{document}
|
||||
\maketitle
|
||||
%\newpage
|
||||
\tableofcontents
|
||||
\newpage
|
||||
|
||||
</xsl:text>
|
||||
<!-- ======= Heading ====== -->
|
||||
<xsl:apply-templates select="Heading"/>
|
||||
<xsl:apply-templates select="node"/>
|
||||
|
||||
|
||||
<xsl:text>
|
||||
\end{document}
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- ======= Body ====== -->
|
||||
|
||||
<!-- Sections Processing -->
|
||||
<xsl:template match="node">
|
||||
<xsl:variable name="target" select="arrowlink/@DESTINATION"/>
|
||||
|
||||
<xsl:if test="@ID != ''">
|
||||
<xsl:text>\label{</xsl:text><xsl:value-of select="@ID"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="(count(ancestor::node())-2)=1">
|
||||
<xsl:text>\chapter</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
</xsl:text></xsl:if>
|
||||
<xsl:if test="(count(ancestor::node())-2)=2">
|
||||
<xsl:text>\section</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
</xsl:text></xsl:if>
|
||||
<xsl:if test="(count(ancestor::node())-2)=3">
|
||||
<xsl:text>\subsection</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
</xsl:text></xsl:if>
|
||||
<xsl:if test="(count(ancestor::node())-2)=4">
|
||||
<xsl:text>\subsubsection</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
</xsl:text></xsl:if>
|
||||
|
||||
<xsl:if test="arrowlink/@DESTINATION != ''">
|
||||
<xsl:text>\ref{</xsl:text>
|
||||
<xsl:value-of select="arrowlink/@DESTINATION"/>
|
||||
<xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="(count(ancestor::node())-2)=5">
|
||||
<xsl:text>\paragraph</xsl:text>
|
||||
<xsl:text>{</xsl:text>
|
||||
<xsl:value-of select="@TEXT"/><xsl:text>}
|
||||
</xsl:text>
|
||||
<xsl:if test="current()/node">
|
||||
<xsl:call-template name="itemization"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
|
||||
<!--<xsl:if test="(count(ancestor::node())-2)>4">
|
||||
|
||||
<xsl:call-template name="itemization"/>
|
||||
|
||||
</xsl:if>-->
|
||||
|
||||
<xsl:if test="5 > (count(ancestor::node())-2)">
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:if>
|
||||
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="itemization">
|
||||
<xsl:param name="i" select="current()/node" />
|
||||
|
||||
<xsl:text>\begin{itemize}
|
||||
</xsl:text>
|
||||
<xsl:for-each select="$i">
|
||||
<xsl:if test="@ID != ''">
|
||||
<xsl:text>\label{</xsl:text><xsl:value-of select="@ID"/><xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>\item </xsl:text>
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
<xsl:if test="arrowlink/@DESTINATION != ''">
|
||||
<xsl:text>\ref{</xsl:text>
|
||||
<xsl:value-of select="arrowlink/@DESTINATION"/>
|
||||
<xsl:text>}</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:text>
|
||||
</xsl:text>
|
||||
</xsl:for-each >
|
||||
<xsl:if test="$i/node">
|
||||
<xsl:call-template name="itemization">
|
||||
<xsl:with-param name="i" select="$i/node"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
<xsl:text>\end{itemize}
|
||||
</xsl:text>
|
||||
</xsl:template>
|
||||
<!--Text Process -->
|
||||
<!--<xsl:apply-templates select="Body/node()"/>-->
|
||||
|
||||
<!-- End of Sections Processing -->
|
||||
|
||||
|
||||
|
||||
<!-- LaTeXChar: A recursif function that generates LaTeX special characters -->
|
||||
<xsl:template name="LaTeXChar">
|
||||
<xsl:param name="i"/>
|
||||
<xsl:param name="l"/>
|
||||
|
||||
<xsl:variable name="SS">
|
||||
<xsl:value-of select="substring(normalize-space(),$l - $i + 1,1)" />
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:if test="$i > 0">
|
||||
|
||||
<xsl:choose>
|
||||
<xsl:when test="$SS = 'é'">
|
||||
<xsl:text>\'{e}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ê'">
|
||||
<xsl:text>\^{e}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'è'">
|
||||
<xsl:text>\`{e}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ï'">
|
||||
<xsl:text>\"{\i}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'î'">
|
||||
<xsl:text>\^{i}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'à'">
|
||||
<xsl:text>\`{a}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'á'">
|
||||
<xsl:text>\'{a}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'â'">
|
||||
<xsl:text>\^{a}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ç'">
|
||||
<xsl:text>\c{c}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ô'">
|
||||
<xsl:text>\^{o}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'ù'">
|
||||
<xsl:text>\`{u}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = 'û'">
|
||||
<xsl:text>\^{u}</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = '|'">
|
||||
<xsl:text>$|$</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:when test="$SS = '_'">
|
||||
<xsl:text>\_</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="$SS"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
<xsl:text></xsl:text>
|
||||
|
||||
<xsl:call-template name="LaTeXChar">
|
||||
<xsl:with-param name="i" select="$i - 1"/>
|
||||
<xsl:with-param name="l" select="$l"/>
|
||||
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
|
||||
</xsl:template>
|
||||
<!-- End of LaTeXChar template -->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- Enumerates Process -->
|
||||
<xsl:template match="Enumerates">
|
||||
<xsl:text>
|
||||
\begin{enumerate}</xsl:text>
|
||||
<xsl:for-each select="Item">
|
||||
<xsl:text>
|
||||
\item </xsl:text>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:for-each>
|
||||
<xsl:text>
|
||||
\end{enumerate}
|
||||
</xsl:text>
|
||||
</xsl:template> <!--Enumerates Process -->
|
||||
|
||||
<!-- Items Process -->
|
||||
<xsl:template match="Items">
|
||||
<xsl:text>
|
||||
\begin{itemize}</xsl:text>
|
||||
<xsl:for-each select="node">
|
||||
<xsl:text>
|
||||
\item </xsl:text>
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
</xsl:for-each>
|
||||
<xsl:text>
|
||||
\end{itemize}
|
||||
</xsl:text>
|
||||
</xsl:template> <!--Items Process -->
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,466 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!--
|
||||
# Simple XSL for the conversion of Mindmaps from Freemind-0.9 to MindManager-8
|
||||
#
|
||||
# Version-1.1
|
||||
#
|
||||
# Copyright (c) 2009 Christian Lorandi
|
||||
# http://freemind2mindmanager.fdns.net
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
-->
|
||||
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
|
||||
xmlns:ap="http://schemas.mindjet.com/MindManager/Application/2003"
|
||||
xmlns:cor="http://schemas.mindjet.com/MindManager/Core/2003"
|
||||
xmlns:pri="http://schemas.mindjet.com/MindManager/Primitive/2003"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://schemas.mindjet.com/MindManager/Application/2003 http://schemas.mindjet.com/MindManager/Application/2003 http://schemas.mindjet.com/MindManager/Core/2003 http://schemas.mindjet.com/MindManager/Core/2003 http://schemas.mindjet.com/MindManager/Delta/2003 http://schemas.mindjet.com/MindManager/Delta/2003 http://schemas.mindjet.com/MindManager/Primitive/2003 http://schemas.mindjet.com/MindManager/Primitive/2003">
|
||||
<xsl:template match="map">
|
||||
<xsl:element name="ap:Map">
|
||||
<xsl:element name="ap:OneTopic">
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:element>
|
||||
<xsl:element name="ap:Relationships">
|
||||
<xsl:apply-templates select="descendant-or-self::arrowlink"></xsl:apply-templates>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node">
|
||||
<xsl:element name="ap:Topic">
|
||||
<xsl:attribute name="OId">
|
||||
<xsl:value-of
|
||||
select="concat(substring-after(@ID, '_'), substring('rW54nezC90m8NYAi2fjQvw==', string-length(substring-after(@ID, '_'))+1))"
|
||||
/>
|
||||
</xsl:attribute>
|
||||
<xsl:if test="node">
|
||||
<xsl:element name="ap:SubTopics">
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select="cloud"/>
|
||||
<xsl:apply-templates select="richcontent//body//img"/>
|
||||
<xsl:element name="ap:Text">
|
||||
<xsl:attribute name="PlainText">
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
</xsl:attribute>
|
||||
<xsl:element name="ap:Font">
|
||||
<xsl:if test="@COLOR">
|
||||
<xsl:attribute name="Color">
|
||||
<xsl:value-of select="concat('ff', substring-after(@COLOR, '#'))"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select="font"/>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
<xsl:if test="not(contains(icon/@BUILTIN, 'full-'))">
|
||||
<xsl:apply-templates select="icon"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BACKGROUND_COLOR">
|
||||
<xsl:element name="ap:Color">
|
||||
<xsl:attribute name="FillColor">
|
||||
<xsl:value-of select="concat('ff', substring-after(@BACKGROUND_COLOR, '#'))"
|
||||
/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="@STYLE">
|
||||
<xsl:element name="ap:SubTopicShape">
|
||||
<xsl:if test="@STYLE = 'bubble'">
|
||||
<xsl:attribute name="SubTopicShape"
|
||||
>urn:mindjet:RoundedRectangle
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@STYLE = 'fork'">
|
||||
<xsl:attribute name="SubTopicShape">urn:mindjet:Line</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="not(@STYLE)">
|
||||
<xsl:element name="ap:SubTopicShape">
|
||||
<xsl:if test="parent::map">
|
||||
<xsl:attribute name="SubTopicShape"
|
||||
>urn:mindjet:RoundedRectangle
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="not(parent::map)">
|
||||
<xsl:attribute name="SubTopicShape">urn:mindjet:Line</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:for-each select="ancestor::node">
|
||||
<xsl:if test="@STYLE = 'bubble'">
|
||||
<xsl:attribute name="SubTopicShape"
|
||||
>urn:mindjet:RoundedRectangle
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@STYLE = 'fork'">
|
||||
<xsl:attribute name="SubTopicShape">urn:mindjet:Line</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:for-each>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="child::edge/@STYLE|parent::map">
|
||||
<xsl:element name="ap:SubTopicsShape">
|
||||
<xsl:if test="contains(child::edge/@STYLE, 'bezier')">
|
||||
<xsl:attribute name="SubTopicsConnectionStyle"
|
||||
>urn:mindjet:Curve
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="contains(child::edge/@STYLE, 'linear')">
|
||||
<xsl:attribute name="SubTopicsConnectionStyle"
|
||||
>urn:mindjet:Straight
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="parent::map">
|
||||
<xsl:attribute name="SubTopicsAlignment">urn:mindjet:Center</xsl:attribute>
|
||||
<xsl:attribute name="SubTopicsGrowth">urn:mindjet:Horizontal</xsl:attribute>
|
||||
<xsl:attribute name="SubTopicsGrowthDirection"
|
||||
>urn:mindjet:AutomaticHorizontal
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="VerticalDistanceBetweenSiblings">150</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@LINK">
|
||||
<xsl:element name="ap:Hyperlink">
|
||||
<xsl:attribute name="Url">
|
||||
<xsl:value-of select="@LINK"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="contains(icon/@BUILTIN, 'full-')">
|
||||
<xsl:apply-templates select="icon"/>
|
||||
</xsl:if>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="font">
|
||||
<xsl:if test="@BOLD">
|
||||
<xsl:attribute name="Bold">
|
||||
<xsl:value-of select="@BOLD"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@ITALIC">
|
||||
<xsl:attribute name="Italic">
|
||||
<xsl:value-of select="@ITALIC"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@SIZE">
|
||||
<xsl:attribute name="Size">
|
||||
<xsl:value-of select="@SIZE"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
<xsl:if test="@NAME">
|
||||
<xsl:attribute name="Name">
|
||||
<xsl:value-of select="@NAME"/>
|
||||
</xsl:attribute>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="richcontent//body//img">
|
||||
<xsl:element name="ap:OneImage">
|
||||
<xsl:element name="ap:Image">
|
||||
<xsl:element name="ap:ImageData">
|
||||
<xsl:attribute name="ImageType">urn:mindjet:PngImage</xsl:attribute>
|
||||
<xsl:attribute name="CustomImageType"></xsl:attribute>
|
||||
<xsl:element name="cor:Uri">
|
||||
<xsl:attribute name="xsi:nil">false</xsl:attribute>
|
||||
<xsl:text>mmarch://bin/</xsl:text>
|
||||
<xsl:value-of select="@src"/>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="arrowlink">
|
||||
<xsl:element name="ap:Relationship">
|
||||
<xsl:element name="ap:ConnectionGroup">
|
||||
<xsl:attribute name="Index">0</xsl:attribute>
|
||||
<xsl:element name="ap:Connection">
|
||||
<xsl:element name="ap:ObjectReference">
|
||||
<xsl:attribute name="OIdRef">
|
||||
<xsl:value-of
|
||||
select="concat(substring-after(parent::node/@ID, '_'), substring('rW54nezC90m8NYAi2fjQvw==', string-length(substring-after(parent::node/@ID, '_'))+1))"
|
||||
/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
<xsl:element name="ap:ConnectionGroup">
|
||||
<xsl:attribute name="Index">1</xsl:attribute>
|
||||
<xsl:element name="ap:Connection">
|
||||
<xsl:element name="ap:ObjectReference">
|
||||
<xsl:attribute name="OIdRef">
|
||||
<xsl:value-of
|
||||
select="concat(substring-after(@DESTINATION, '_'), substring('rW54nezC90m8NYAi2fjQvw==', string-length(substring-after(@DESTINATION, '_'))+1))"
|
||||
/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
<xsl:element name="ap:AutoRoute">
|
||||
<xsl:attribute name="AutoRouting">true</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="cloud">
|
||||
<xsl:element name="ap:OneBoundary">
|
||||
<xsl:element name="ap:Boundary">
|
||||
<xsl:if test="@COLOR">
|
||||
<xsl:element name="ap:Color">
|
||||
<xsl:attribute name="FillColor">
|
||||
<xsl:value-of select="concat('2e', substring-after(@COLOR, '#'))"/>
|
||||
</xsl:attribute>
|
||||
<xsl:attribute name="LineColor">
|
||||
<xsl:value-of select="concat('ff', substring-after(@COLOR, '#'))"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:element name="ap:BoundaryShape">
|
||||
<xsl:attribute name="BoundaryShape">urn:mindjet:CurvedLine</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="icon">
|
||||
<xsl:if test="number(substring-after(@BUILTIN, 'full-')) < 6">
|
||||
<xsl:if test="contains(@BUILTIN, 'full-')">
|
||||
<xsl:element name="ap:Task">
|
||||
<xsl:attribute name="TaskPriority">urn:mindjet:Prio<xsl:value-of
|
||||
select="substring-after(@BUILTIN, 'full-')"/>
|
||||
</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'help'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:QuestionMark</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'yes'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:ExclamationMark</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'messagebox_warning'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:Emergency</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'button_ok'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:ThumbsUp</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'button_cancel'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:ThumbsDown</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'calendar'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:Calendar</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'up'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:ArrowUp</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'down'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:ArrowDown</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'forward'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:ArrowRight</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'back'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:ArrowLeft</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'flag-black'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:FlagBlack</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'flag-green'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:FlagGreen</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'flag'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:FlagRed</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'flag-yellow'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:FlagYellow</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'flag-orange'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:FlagOrange</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'flag-pink'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:FlagPurple</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'flag-blue'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:FlagBlue</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="@BUILTIN = 'ksmiletris'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:SmileyHappy</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'smiley-neutral'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:SmileyNeutral</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'smiley-angry'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:SmileyAngry</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
<xsl:if test="@BUILTIN = 'smily_bad'">
|
||||
<xsl:element name="ap:IconsGroup">
|
||||
<xsl:element name="ap:Icons">
|
||||
<xsl:element name="ap:Icon">
|
||||
<xsl:attribute name="xsi:type">ap:StockIcon</xsl:attribute>
|
||||
<xsl:attribute name="IconType">urn:mindjet:SmileySad</xsl:attribute>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -1,120 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
(c) by Naoki Nose, 2006, and Eric Lavarde, 2008
|
||||
This code is licensed under the GPLv2 or later.
|
||||
(http://www.gnu.org/copyleft/gpl.html)
|
||||
Check 'mm2msp_utf8_TEMPLATE.mm' for detailed instructions on how to use
|
||||
this sheet.
|
||||
-->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns="http://schemas.microsoft.com/project"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8" standalone="yes"/>
|
||||
|
||||
<xsl:key name="deps" match="arrowlink" use="@DESTINATION"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<Project>
|
||||
<xsl:apply-templates/>
|
||||
</Project>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="//map">
|
||||
<Title><xsl:value-of select="node/@TEXT"/></Title>
|
||||
<xsl:apply-templates select="node/attribute">
|
||||
<xsl:with-param name="prefix" select="'prj'"/>
|
||||
</xsl:apply-templates>
|
||||
<Tasks>
|
||||
<xsl:apply-templates select="node" mode="tasks"/>
|
||||
</Tasks>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node" mode="tasks">
|
||||
<xsl:param name="level" select="0"/>
|
||||
<Task>
|
||||
<UID><xsl:if test="$level > 0">
|
||||
<xsl:number level="any" count="//map/node//node"
|
||||
format="1"/></xsl:if>
|
||||
<xsl:if test="$level = 0">0</xsl:if></UID>
|
||||
<xsl:call-template name="output-node-text-as-name"/>
|
||||
<xsl:call-template name="output-note-text-as-notes"/>
|
||||
<OutlineLevel><xsl:value-of select="$level"/></OutlineLevel>
|
||||
<xsl:if test="not(attribute[@NAME = 'tsk-FixedCostAccrual'])">
|
||||
<FixedCostAccrual>1</FixedCostAccrual>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select="attribute">
|
||||
<xsl:with-param name="prefix" select="'tsk'"/>
|
||||
</xsl:apply-templates>
|
||||
<xsl:for-each select="key('deps',@ID)">
|
||||
<xsl:call-template name="output-arrow-as-predecessor">
|
||||
<xsl:with-param name="level" select="$level"/>
|
||||
</xsl:call-template>
|
||||
</xsl:for-each>
|
||||
</Task>
|
||||
<xsl:apply-templates mode="tasks">
|
||||
<xsl:with-param name="level" select="$level + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-node-text-as-name">
|
||||
<Name><xsl:choose>
|
||||
<xsl:when test="@TEXT">
|
||||
<xsl:value-of select="normalize-space(@TEXT)" />
|
||||
</xsl:when>
|
||||
<xsl:when test="richcontent[@TYPE='NODE']">
|
||||
<xsl:value-of
|
||||
select="normalize-space(richcontent[@TYPE='NODE']/html/body)" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text></xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose></Name>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-note-text-as-notes">
|
||||
<xsl:if test="richcontent[@TYPE='NOTE']">
|
||||
<Notes><xsl:value-of
|
||||
select="string(richcontent[@TYPE='NOTE']/html/body)" />
|
||||
</Notes>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-arrow-as-predecessor">
|
||||
<xsl:param name="level" select="0"/>
|
||||
<PredecessorLink>
|
||||
<PredecessorUID><xsl:if test="$level > 0">
|
||||
<xsl:number level="any" count="//map/node//node" format="1"/>
|
||||
</xsl:if>
|
||||
<xsl:if test="$level = 0">0</xsl:if></PredecessorUID>
|
||||
<Type><xsl:choose>
|
||||
<xsl:when test="@ENDARROW = 'Default'">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@STARTARROW = 'Default'">3</xsl:when>
|
||||
<xsl:otherwise>1</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@STARTARROW = 'Default'">2</xsl:when>
|
||||
<xsl:otherwise>0</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose></Type>
|
||||
</PredecessorLink>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="attribute">
|
||||
<xsl:param name="prefix" />
|
||||
<xsl:if test="starts-with(@NAME,concat($prefix,'-'))">
|
||||
<xsl:element name="{substring-after(@NAME,concat($prefix,'-'))}">
|
||||
<xsl:value-of select="@VALUE"/>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- required to _not_ output other things than nodes -->
|
||||
<xsl:template match="*" mode="tasks"></xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
||||
@@ -1,785 +0,0 @@
|
||||
<map version="0.9.0">
|
||||
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
|
||||
<node CREATED="1216809870908" ID="ID_1507004962" MODIFIED="1216826585940" TEXT="Example of project plan ready for export
using XSLT export with mm2msp_utf8.xsl">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
The note of the root node is exported as project comments (in the properties) but <b>formatting</b> is <i>lost. </i>
|
||||
</p>
|
||||
<p>
|
||||
Any attribute starting with the prefix "prj-" is used as parameter for the project (after removal of the prefix). Possible parameter/value combinations need to be guessed from the XML output of MS Project. The below lines give some examples and hints.
|
||||
</p>
|
||||
<p>
|
||||
Any attribute starting with the prefix "tsk-" is used as parameter for the task (after removal of the prefix)
|
||||
</p>
|
||||
<h2>
|
||||
Examples of possible project parameters and values
|
||||
</h2>
|
||||
<p>
|
||||
The following lines show examples of parameters/values combinations found in MS Project's XML file. Combinations in Bold are easy to understand, meaningful and safe to use, ones in Italic are to be avoided, for the others let me know.
|
||||
</p>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
<Name>Project1.xml</Name>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <i><Title>Project Name Bla Bla</Title> DO NOT USE, generated from the node text.</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <b><Company>Acme Corp.</Company></b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <b><Author>John Smith</Author></b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <CreationDate>2008-07-23T12:48:00</CreationDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <LastSaved>2008-07-23T16:37:00</LastSaved>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <ScheduleFromStart>1</ScheduleFromStart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <StartDate>2008-07-23T08:00:00</StartDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <FinishDate>2008-07-29T17:00:00</FinishDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <FYStartDate>1</FYStartDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <CriticalSlackLimit>0</CriticalSlackLimit>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <CurrencyDigits>2</CurrencyDigits>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <CurrencySymbol>€</CurrencySymbol>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <CurrencySymbolPosition>0</CurrencySymbolPosition>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <CalendarUID>1</CalendarUID>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DefaultStartTime>08:00:00</DefaultStartTime>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DefaultFinishTime>17:00:00</DefaultFinishTime>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MinutesPerDay>480</MinutesPerDay>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MinutesPerWeek>2400</MinutesPerWeek>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DaysPerMonth>20</DaysPerMonth>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DefaultTaskType>0</DefaultTaskType>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DefaultFixedCostAccrual>3</DefaultFixedCostAccrual>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DefaultStandardRate>0</DefaultStandardRate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DefaultOvertimeRate>0</DefaultOvertimeRate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DurationFormat>7</DurationFormat>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <WorkFormat>2</WorkFormat>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <EditableActualCosts>0</EditableActualCosts>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <HonorConstraints>0</HonorConstraints>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <InsertedProjectsLikeSummary>1</InsertedProjectsLikeSummary>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MultipleCriticalPaths>0</MultipleCriticalPaths>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <NewTasksEffortDriven>1</NewTasksEffortDriven>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <NewTasksEstimated>1</NewTasksEstimated>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <SplitsInProgressTasks>1</SplitsInProgressTasks>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <SpreadActualCost>0</SpreadActualCost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <SpreadPercentComplete>0</SpreadPercentComplete>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <TaskUpdatesResource>1</TaskUpdatesResource>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <FiscalYearStart>0</FiscalYearStart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <WeekStartDay>1</WeekStartDay>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MoveCompletedEndsBack>0</MoveCompletedEndsBack>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MoveRemainingStartsBack>0</MoveRemainingStartsBack>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MoveRemainingStartsForward>0</MoveRemainingStartsForward>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MoveCompletedEndsForward>0</MoveCompletedEndsForward>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <BaselineForEarnedValue>0</BaselineForEarnedValue>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <AutoAddNewResourcesAndTasks>1</AutoAddNewResourcesAndTasks>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <CurrentDate>2008-07-23T08:00:00</CurrentDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <MicrosoftProjectServerURL>1</MicrosoftProjectServerURL>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <Autolink>1</Autolink>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <NewTaskStartDate>0</NewTaskStartDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <DefaultTaskEVMethod>0</DefaultTaskEVMethod>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <ProjectExternallyEdited>0</ProjectExternallyEdited>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <ExtendedCreationDate>1984-01-01T00:00:00</ExtendedCreationDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <ActualsInSync>1</ActualsInSync>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <RemoveFileProperties>0</RemoveFileProperties>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <AdminProject>0</AdminProject>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <OutlineCodes />
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <WBSMasks />
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="margin-left: 0; text-indent: 0">
|
||||
  <ExtendedAttributes />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html></richcontent>
|
||||
<attribute NAME="prj-Company" VALUE="Acme Corp."/>
|
||||
<attribute NAME="prj-Author" VALUE="John Smith"/>
|
||||
<node CREATED="1216809884057" ID="ID_596157601" MODIFIED="1216825866317" POSITION="right" TEXT="task 1">
|
||||
<node CREATED="1216809884057" ID="ID_551098884" MODIFIED="1216826500604" TEXT="task 1.1">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Any attribute starting with the prefix "tsk-" is used as parameter for the task (after removal of the prefix). Possible parameter/value combinations need to be guessed from the XML output of MS Project. The below lines give some examples and hints.
|
||||
</p>
|
||||
<h2>
|
||||
Examples of possible tasks parameters and values
|
||||
</h2>
|
||||
<p>
|
||||
The following lines show examples of parameters/values combinations found in MS Project's XML file. Combinations in Bold are easy to understand, meaningful and safe to use, ones in Italic are to be avoided, for the others let me know.
|
||||
</p>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <i><UID>1</UID> DO NOT USE, generated automatically.</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ID>1</ID>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
<i>  <Name>task 1</Name> DO NOT USE, generated from the node text.</i>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Type>1</Type>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <IsNull>0</IsNull>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <CreateDate>2008-07-23T12:48:00</CreateDate>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <WBS>1</WBS>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <OutlineNumber>1</OutlineNumber>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <OutlineLevel>1</OutlineLevel>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <b><Priority>200</Priority></b>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Start>2008-07-22T08:00:00</Start>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Finish>2008-07-29T17:00:00</Finish>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Duration>PT48H0M0S</Duration> the duration of the task in hours/minutes/seconds (but doesn't work as such).
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <DurationFormat>53</DurationFormat>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Work>PT8H0M0S</Work> the effort required for the task in hours/minutes/seconds (but doesn't work as such).
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ResumeValid>0</ResumeValid>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <EffortDriven>0</EffortDriven>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Recurring>0</Recurring>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <OverAllocated>0</OverAllocated>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Estimated>1</Estimated>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Milestone>0</Milestone>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Summary>1</Summary>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Critical>1</Critical>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <IsSubproject>0</IsSubproject>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <IsSubprojectReadOnly>0</IsSubprojectReadOnly>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ExternalTask>0</ExternalTask>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <EarlyStart>2008-07-22T08:00:00</EarlyStart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <EarlyFinish>2008-07-29T17:00:00</EarlyFinish>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <LateStart>2008-07-23T08:00:00</LateStart>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <LateFinish>2008-07-29T17:00:00</LateFinish>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <StartVariance>0</StartVariance>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <FinishVariance>0</FinishVariance>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <WorkVariance>0</WorkVariance>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <FreeSlack>0</FreeSlack>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <TotalSlack>0</TotalSlack>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <FixedCost>0</FixedCost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <FixedCostAccrual>1</FixedCostAccrual>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <PercentComplete>0</PercentComplete>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <PercentWorkComplete>0</PercentWorkComplete>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Cost>0</Cost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <OvertimeCost>0</OvertimeCost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <OvertimeWork>PT0H0M0S</OvertimeWork>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ActualDuration>PT0H0M0S</ActualDuration>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ActualCost>0</ActualCost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ActualOvertimeCost>0</ActualOvertimeCost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ActualWork>PT0H0M0S</ActualWork>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ActualOvertimeWork>PT0H0M0S</ActualOvertimeWork>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <RegularWork>PT0H0M0S</RegularWork>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <RemainingDuration>PT48H0M0S</RemainingDuration>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <RemainingCost>0</RemainingCost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <RemainingWork>PT0H0M0S</RemainingWork>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <RemainingOvertimeCost>0</RemainingOvertimeCost>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <RemainingOvertimeWork>PT0H0M0S</RemainingOvertimeWork>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ACWP>0</ACWP>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <CV>0</CV>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ConstraintType>0</ConstraintType>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <CalendarUID>-1</CalendarUID>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <LevelAssignments>1</LevelAssignments>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <LevelingCanSplit>1</LevelingCanSplit>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <LevelingDelay>0</LevelingDelay>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <LevelingDelayFormat>8</LevelingDelayFormat>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <IgnoreResourceCalendar>0</IgnoreResourceCalendar>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
<i>  <Notes>bla bla</Notes> DO NOT USE, will be generated from the node's note.</i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <HideBar>0</HideBar>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <Rollup>0</Rollup>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <BCWS>0</BCWS>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <BCWP>0</BCWP>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <PhysicalPercentComplete>0</PhysicalPercentComplete>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <EarnedValueMethod>0</EarnedValueMethod>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ActualWorkProtected>PT0H0M0S</ActualWorkProtected>
|
||||
</div>
|
||||
</div>
|
||||
<div class="e">
|
||||
<div style="text-indent: 0; margin-left: 0">
|
||||
  <ActualOvertimeWorkProtected>PT0H0M0S</ActualOvertimeWorkProtected>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<attribute_layout NAME_WIDTH="107" VALUE_WIDTH="107"/>
|
||||
<attribute NAME="tsk-Priority" VALUE="200"/>
|
||||
</node>
|
||||
<node CREATED="1216809890907" ID="ID_1321935745" MODIFIED="1216825825567" TEXT="task 1.2">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
The note of any node is exported as task notes but <b>formatting</b> is <i>lost. </i>
|
||||
</p>
|
||||
<p>
|
||||
The sub-nodes show how graphical links are transformed into predecessors relations.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<node CREATED="1216809898648" ID="ID_896868759" MODIFIED="1216825200032" TEXT="task 1.2.1 - predecessor of all following tasks">
|
||||
<arrowlink DESTINATION="ID_661978653" ENDARROW="Default" ENDINCLINATION="199;0;" ID="Arrow_ID_1192464141" STARTARROW="Default" STARTINCLINATION="199;0;"/>
|
||||
<arrowlink DESTINATION="ID_1453547974" ENDARROW="None" ENDINCLINATION="76;0;" ID="Arrow_ID_831124590" STARTARROW="Default" STARTINCLINATION="76;0;"/>
|
||||
<arrowlink DESTINATION="ID_869034720" ENDARROW="None" ENDINCLINATION="94;0;" ID="Arrow_ID_851487381" STARTARROW="None" STARTINCLINATION="94;0;"/>
|
||||
<arrowlink DESTINATION="ID_1048991478" ENDARROW="Default" ENDINCLINATION="195;0;" ID="Arrow_ID_1795574541" STARTARROW="None" STARTINCLINATION="195;0;"/>
|
||||
</node>
|
||||
<node CREATED="1216809902163" ID="ID_1048991478" MODIFIED="1216825125382" TEXT="task 1.2.2 - uses Finish-to-Start relation"/>
|
||||
<node CREATED="1216809906259" ID="ID_661978653" MODIFIED="1216825194484" TEXT="task 1.2.3 - uses Start-to-Start relation"/>
|
||||
<node CREATED="1216825049830" ID="ID_1453547974" MODIFIED="1216825170078" TEXT="task 1.2.4 - uses Start-to-Finish relation"/>
|
||||
<node CREATED="1216825055158" ID="ID_869034720" MODIFIED="1216825200032" TEXT="task 1.2.5 - uses Finish-to-Finish relation"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216809914482" ID="ID_1308741003" MODIFIED="1216826803952" POSITION="left" TEXT="task 2 - how to export a mindmap to MS Project ?">
|
||||
<node CREATED="1216809917636" ID="ID_199484608" MODIFIED="1216826829891" TEXT="task 2.1 - create a map following the notes and hints expressed in this example map"/>
|
||||
<node CREATED="1216809921221" ID="ID_1681718272" MODIFIED="1216826859865" TEXT="task 2.2 - export the map using the File -> Export -> Using XSLT... menu">
|
||||
<node CREATED="1216826868748" ID="ID_1660904657" MODIFIED="1216826921937" TEXT="task 2.2.1 - select the mm2msp_utf8.xsl XSL file from the accessories directory in the FreeMind base directory."/>
|
||||
<node CREATED="1216826924521" ID="ID_1561412985" MODIFIED="1216827030567" TEXT="task 2.2.2 - export to a file with a name ending in .xml"/>
|
||||
</node>
|
||||
<node CREATED="1216826940554" ID="ID_769680777" MODIFIED="1216827227358" TEXT="task 2.3 - open Microsoft Office Project">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
You need a version of MS Project supporting XML, I think MS Project 2003 and later.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
</node>
|
||||
<node CREATED="1216826953904" ID="ID_999549737" MODIFIED="1216826968235" TEXT="task 2.4 - select the File -> Open menu point">
|
||||
<node CREATED="1216826972942" ID="ID_1853962830" MODIFIED="1216827047893" TEXT="task 2.4.1 - make sure the file dialog filters on XML files"/>
|
||||
<node CREATED="1216827051148" ID="ID_1363816861" MODIFIED="1216827068093" TEXT="task 2.4.2 - select the file.xml you've just exported"/>
|
||||
</node>
|
||||
<node CREATED="1216827072099" ID="ID_785390572" MODIFIED="1216827091417" TEXT="task 2.5 - you're done, enjoy!"/>
|
||||
</node>
|
||||
<node CREATED="1216809929423" ID="ID_180931108" MODIFIED="1216825071502" POSITION="left" TEXT="task 3"/>
|
||||
<node CREATED="1216822804682" ID="ID_1397543137" MODIFIED="1216825071502" POSITION="left" TEXT="task 4"/>
|
||||
</node>
|
||||
</map>
|
||||
@@ -1,55 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!--
|
||||
adapted from mm2oowriter.xsl by Ondrej Popp
|
||||
/*FreeMind - A Program for creating and viewing Mindmaps
|
||||
*Copyright (C) 2000-2008 Christian Foltin and others.
|
||||
*
|
||||
*See COPYING for Details
|
||||
*
|
||||
*This program is free software; you can redistribute it and/or
|
||||
*modify it under the terms of the GNU General Public License
|
||||
*as published by the Free Software Foundation; either version 2
|
||||
*of the License, or (at your option) any later version.
|
||||
*
|
||||
*This program is distributed in the hope that it will be useful,
|
||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
*GNU General Public License for more details.
|
||||
*
|
||||
*You should have received a copy of the GNU General Public License
|
||||
*along with this program; if not, write to the Free Software
|
||||
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
-->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
|
||||
|
||||
<xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8" omit-xml-declaration="no"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
|
||||
<xsl:template match="map">
|
||||
<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
|
||||
<manifest:file-entry manifest:media-type="application/vnd.oasis.opendocument.presentation" manifest:full-path="/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/statusbar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/accelerator/current.xml"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/accelerator/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/floater/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/popupmenu/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/progressbar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/menubar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/toolbar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/images/Bitmaps/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/images/"/>
|
||||
<manifest:file-entry manifest:media-type="application/vnd.sun.xml.ui.configuration" manifest:full-path="Configurations2/"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="content.xml"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="styles.xml"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="meta.xml"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Thumbnails/thumbnail.png"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Thumbnails/"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="settings.xml"/>
|
||||
</manifest:manifest>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,714 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*FreeMind - A Program for creating and viewing Mindmaps *Copyright
|
||||
(C) 2000-2008 Christian Foltin and others. * *See COPYING for Details
|
||||
* *This program is free software; you can redistribute it and/or
|
||||
*modify it under the terms of the GNU General Public License *as
|
||||
published by the Free Software Foundation; either version 2 *of the
|
||||
License, or (at your option) any later version. * *This program is
|
||||
distributed in the hope that it will be useful, *but WITHOUT ANY
|
||||
WARRANTY; without even the implied warranty of *MERCHANTABILITY or
|
||||
FITNESS FOR A PARTICULAR PURPOSE. See the *GNU General Public License
|
||||
for more details. * *You should have received a copy of the GNU
|
||||
General Public License *along with this program; if not, write to the
|
||||
Free Software *Foundation, Inc., 59 Temple Place - Suite 330, Boston,
|
||||
MA 02111-1307, USA. * */
|
||||
-->
|
||||
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
|
||||
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
|
||||
xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer"
|
||||
xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events"
|
||||
xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:output method="xml" version="1.0" indent="no"
|
||||
encoding="UTF-8" omit-xml-declaration="no" />
|
||||
<xsl:strip-space elements="*" />
|
||||
|
||||
<!-- fc, 16.2.2009: The following parameter is set by freemind. -->
|
||||
<xsl:param name="date">
|
||||
02.2009
|
||||
</xsl:param>
|
||||
|
||||
<xsl:template match="map">
|
||||
<office:document-content
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
|
||||
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
|
||||
xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
|
||||
xmlns:ooo="http://openoffice.org/2004/office" xmlns:ooow="http://openoffice.org/2004/writer"
|
||||
xmlns:oooc="http://openoffice.org/2004/calc" xmlns:dom="http://www.w3.org/2001/xml-events"
|
||||
xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:smil="urn:oasis:names:tc:opendocument:xmlns:smil-compatible:1.0"
|
||||
xmlns:anim="urn:oasis:names:tc:opendocument:xmlns:animation:1.0"
|
||||
xmlns:field="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:field:1.0"
|
||||
office:version="1.1">
|
||||
<office:scripts />
|
||||
<office:automatic-styles>
|
||||
<style:style style:name="dp1" style:family="drawing-page">
|
||||
<style:drawing-page-properties
|
||||
presentation:background-visible="true"
|
||||
presentation:background-objects-visible="true"
|
||||
presentation:display-footer="false"
|
||||
presentation:display-page-number="false"
|
||||
presentation:display-date-time="false" />
|
||||
</style:style>
|
||||
<style:style style:name="dp2" style:family="drawing-page">
|
||||
<style:drawing-page-properties
|
||||
presentation:display-header="true" presentation:display-footer="true"
|
||||
presentation:display-page-number="false"
|
||||
presentation:display-date-time="true" />
|
||||
</style:style>
|
||||
<style:style style:name="dp3" style:family="drawing-page">
|
||||
<style:drawing-page-properties
|
||||
presentation:background-visible="true"
|
||||
presentation:background-objects-visible="true"
|
||||
presentation:display-footer="true"
|
||||
presentation:display-page-number="true"
|
||||
presentation:display-date-time="true" />
|
||||
</style:style>
|
||||
<style:style style:name="gr1" style:family="graphic">
|
||||
<style:graphic-properties style:protect="size" />
|
||||
</style:style>
|
||||
<style:style style:name="pr1" style:family="presentation"
|
||||
style:parent-style-name="Standard-title">
|
||||
<style:graphic-properties draw:fill-color="#ffffff"
|
||||
fo:min-height="3.256cm" />
|
||||
</style:style>
|
||||
<style:style style:name="pr2" style:family="presentation"
|
||||
style:parent-style-name="Standard-subtitle">
|
||||
<style:graphic-properties draw:fill-color="#ffffff"
|
||||
fo:min-height="13.609cm" />
|
||||
</style:style>
|
||||
<style:style style:name="pr3" style:family="presentation"
|
||||
style:parent-style-name="Standard-notes">
|
||||
<style:graphic-properties draw:fill-color="#ffffff"
|
||||
draw:auto-grow-height="true" fo:min-height="13.365cm" />
|
||||
</style:style>
|
||||
<style:style style:name="pr4" style:family="presentation"
|
||||
style:parent-style-name="Standard-outline1">
|
||||
<style:graphic-properties draw:fill-color="#ffffff"
|
||||
fo:min-height="13.609cm" />
|
||||
</style:style>
|
||||
<style:style style:name="Title1" style:family="paragraph">
|
||||
<style:paragraph-properties
|
||||
fo:margin-left="0cm" fo:margin-right="0cm" fo:text-align="start"
|
||||
fo:text-indent="0cm" />
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties fo:font-size="36pt"
|
||||
style:font-size-asian="36pt" style:font-size-complex="36pt" />
|
||||
</style:style>
|
||||
<style:style style:name="P1" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="1.2cm" fo:margin-right="0cm" fo:text-indent="-0.9cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P2" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="2.4cm" fo:margin-right="0cm" fo:text-indent="-0.8cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P3" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="3.6cm" fo:margin-right="0cm" fo:text-indent="-0.6cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P4" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="4.8cm" fo:margin-right="0cm" fo:text-indent="-0.6cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P5" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="6cm" fo:margin-right="0cm" fo:text-indent="-0.6cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P6" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="7.2cm" fo:margin-right="0cm" fo:text-indent="-0.6cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P7" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="8.4cm" fo:margin-right="0cm" fo:text-indent="-0.6cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P8" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="9.6cm" fo:margin-right="0cm" fo:text-indent="-0.6cm"/>
|
||||
</style:style>
|
||||
<style:style style:name="P9" style:family="paragraph">
|
||||
<style:paragraph-properties fo:margin-left="10.8cm" fo:margin-right="0cm" fo:text-indent="-0.6cm"/>
|
||||
</style:style>
|
||||
<text:list-style style:name="L1">
|
||||
<text:list-level-style-bullet
|
||||
text:level="1" text:bullet-char="●">
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="45%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="2" text:bullet-char="–">
|
||||
<style:list-level-properties
|
||||
text:space-before="1.6cm" text:min-label-width="0.8cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="75%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="3" text:bullet-char="●">
|
||||
<style:list-level-properties
|
||||
text:space-before="3cm" text:min-label-width="0.6cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="45%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="4" text:bullet-char="–">
|
||||
<style:list-level-properties
|
||||
text:space-before="4.2cm" text:min-label-width="0.6cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="75%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="5" text:bullet-char="●">
|
||||
<style:list-level-properties
|
||||
text:space-before="5.4cm" text:min-label-width="0.6cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="45%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="6" text:bullet-char="●">
|
||||
<style:list-level-properties
|
||||
text:space-before="6.6cm" text:min-label-width="0.6cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="45%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="7" text:bullet-char="●">
|
||||
<style:list-level-properties
|
||||
text:space-before="7.8cm" text:min-label-width="0.6cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="45%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="8" text:bullet-char="●">
|
||||
<style:list-level-properties
|
||||
text:space-before="9cm" text:min-label-width="0.6cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="45%" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet
|
||||
text:level="9" text:bullet-char="●">
|
||||
<style:list-level-properties
|
||||
text:space-before="10.2cm" text:min-label-width="0.6cm" />
|
||||
<style:text-properties fo:font-family="StarSymbol"
|
||||
style:use-window-font-color="true" fo:font-size="45%" />
|
||||
</text:list-level-style-bullet>
|
||||
</text:list-style>
|
||||
</office:automatic-styles>
|
||||
<office:body>
|
||||
<office:presentation>
|
||||
<!-- Title page -->
|
||||
<xsl:apply-templates select="node" mode="titlepage" />
|
||||
<presentation:settings
|
||||
presentation:mouse-visible="false" />
|
||||
</office:presentation>
|
||||
</office:body>
|
||||
</office:document-content>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node" mode="titlepage">
|
||||
<presentation:footer-decl presentation:name="ftr1">
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="style"></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</presentation:footer-decl>
|
||||
<presentation:date-time-decl
|
||||
presentation:name="dtd1" presentation:source="fixed">
|
||||
<xsl:value-of select="$date" />
|
||||
</presentation:date-time-decl>
|
||||
<draw:page draw:name="page1" draw:style-name="dp1"
|
||||
draw:master-page-name="Standard"
|
||||
presentation:presentation-page-layout-name="AL1T0"
|
||||
presentation:use-footer-name="ftr1" presentation:use-date-time-name="dtd1">
|
||||
<office:forms form:automatic-focus="false"
|
||||
form:apply-design-mode="false" />
|
||||
<draw:frame presentation:style-name="pr1" draw:layer="layout"
|
||||
svg:width="25.199cm" svg:height="3.256cm" svg:x="1.4cm" svg:y="0.962cm"
|
||||
presentation:class="title">
|
||||
<draw:text-box>
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="style">P1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</draw:text-box>
|
||||
</draw:frame>
|
||||
<draw:frame presentation:style-name="pr2" draw:layer="layout"
|
||||
svg:width="25.199cm" svg:height="13.609cm" svg:x="1.4cm" svg:y="5.039cm"
|
||||
presentation:class="subtitle" presentation:placeholder="true">
|
||||
<draw:text-box />
|
||||
</draw:frame>
|
||||
<presentation:notes draw:style-name="dp2">
|
||||
<office:forms form:automatic-focus="false"
|
||||
form:apply-design-mode="false" />
|
||||
<draw:page-thumbnail draw:style-name="gr1"
|
||||
draw:layer="layout" svg:width="14.848cm" svg:height="11.135cm"
|
||||
svg:x="3.075cm" svg:y="2.257cm" draw:page-number="1"
|
||||
presentation:class="page" />
|
||||
<draw:frame presentation:style-name="pr3"
|
||||
draw:text-style-name="P2" draw:layer="layout" svg:width="16.799cm"
|
||||
svg:height="13.365cm" svg:x="2.1cm" svg:y="14.107cm"
|
||||
presentation:class="notes" presentation:placeholder="true">
|
||||
<draw:text-box />
|
||||
</draw:frame>
|
||||
</presentation:notes>
|
||||
</draw:page>
|
||||
<!-- Give the other nodes out. -->
|
||||
<xsl:apply-templates select="." mode="toc" />
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node" mode="titleout">
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="style"></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node" mode="contentout">
|
||||
<text:list text:style-name="L2">
|
||||
<text:list-item>
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="style">P1</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="depthMeasurement">
|
||||
<xsl:param name="nodes" select="."></xsl:param>
|
||||
<xsl:choose>
|
||||
<xsl:when test="count($nodes)=0">0</xsl:when>
|
||||
<xsl:when test="count($nodes)=1">
|
||||
<!-- Call method with its descendants. -->
|
||||
<xsl:variable name="val">
|
||||
<xsl:call-template name="depthMeasurement">
|
||||
<xsl:with-param name="nodes" select="$nodes/node"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:value-of select="$val+1"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- Determine max -->
|
||||
<xsl:variable name="half" select="floor(count($nodes) div 2)"/>
|
||||
<xsl:variable name="val1">
|
||||
<xsl:call-template name="depthMeasurement">
|
||||
<xsl:with-param name="nodes" select="$nodes[position() <= $half]"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="val2">
|
||||
<xsl:call-template name="depthMeasurement">
|
||||
<xsl:with-param name="nodes" select="$nodes[position() > $half]"/>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$val1 > $val2"><xsl:value-of select="$val1"/></xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="$val2"/></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="node" mode="toc">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:call-template name="depthMeasurement">
|
||||
<xsl:with-param name="nodes" select="."></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<!--
|
||||
If the current node has a note, then insert a special page for it.
|
||||
-->
|
||||
<xsl:if test="richcontent[@TYPE='NOTE']">
|
||||
<xsl:apply-templates select="." mode="note" />
|
||||
</xsl:if>
|
||||
<xsl:variable name="subnodes" select="node"></xsl:variable>
|
||||
<xsl:variable name="completeOut" select="$depth < 3 or @FOLDED='true'"></xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$subnodes = 0"></xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!--
|
||||
Give summary page out. Title is the current node, Content are the
|
||||
children, notes are omitted (draw:name="page3" is omitted, too).
|
||||
-->
|
||||
<draw:page draw:style-name="dp3"
|
||||
draw:master-page-name="Standard"
|
||||
presentation:presentation-page-layout-name="AL2T1"
|
||||
presentation:use-footer-name="ftr1" presentation:use-date-time-name="dtd1">
|
||||
<office:forms form:automatic-focus="false"
|
||||
form:apply-design-mode="false" />
|
||||
<draw:frame presentation:style-name="pr1"
|
||||
draw:text-style-name="P4" draw:layer="layout" svg:width="25.199cm"
|
||||
svg:height="3.256cm" svg:x="1.4cm" svg:y="0.962cm"
|
||||
presentation:class="title" presentation:user-transformed="true">
|
||||
<draw:text-box>
|
||||
<text:p text:style-name="Title1">
|
||||
<!-- Title of upper slide -->
|
||||
<xsl:apply-templates select=".." mode="titleout" />
|
||||
<text:line-break /><text:span text:style-name="T1">
|
||||
<!-- Title of this slide with decreased font -->
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="style"></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</text:span>
|
||||
</text:p>
|
||||
</draw:text-box>
|
||||
</draw:frame>
|
||||
<draw:frame presentation:style-name="pr4" draw:layer="layout"
|
||||
svg:width="25.199cm" svg:height="13.609cm" svg:x="1.4cm" svg:y="4.914cm"
|
||||
presentation:class="outline">
|
||||
<xsl:choose>
|
||||
<xsl:when test="$completeOut">
|
||||
<!-- Give the complete sub nodes out. -->
|
||||
<draw:text-box>
|
||||
<xsl:apply-templates select="node" />
|
||||
</draw:text-box>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<draw:text-box>
|
||||
<xsl:apply-templates select="node" mode="contentout" />
|
||||
</draw:text-box>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</draw:frame>
|
||||
<presentation:notes draw:style-name="dp2">
|
||||
<office:forms form:automatic-focus="false"
|
||||
form:apply-design-mode="false" />
|
||||
<draw:page-thumbnail draw:style-name="gr1"
|
||||
draw:layer="layout" svg:width="14.848cm" svg:height="11.135cm"
|
||||
svg:x="3.075cm" svg:y="2.257cm"
|
||||
presentation:class="page" />
|
||||
<draw:frame presentation:style-name="pr3"
|
||||
draw:text-style-name="P7" draw:layer="layout" svg:width="16.799cm"
|
||||
svg:height="13.365cm" svg:x="2.1cm" svg:y="14.107cm"
|
||||
presentation:class="notes" presentation:placeholder="true">
|
||||
<draw:text-box />
|
||||
</draw:frame>
|
||||
</presentation:notes>
|
||||
</draw:page>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$completeOut"/>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="node" mode="toc" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node">
|
||||
<xsl:param name="depth">0</xsl:param>
|
||||
<xsl:variable name="text">
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="style">P<xsl:value-of select="$depth+1"/></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:variable>
|
||||
<text:list text:style-name="L2">
|
||||
<text:list-item>
|
||||
<xsl:call-template name="insertList">
|
||||
<xsl:with-param name="text" select="$text"/>
|
||||
<xsl:with-param name="depth" select="$depth"/>
|
||||
</xsl:call-template>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
<xsl:apply-templates select="node" >
|
||||
<xsl:with-param name="depth" select="$depth+1"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="insertList">
|
||||
<xsl:param name="text">TT</xsl:param>
|
||||
<xsl:param name="depth">0</xsl:param>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$depth = 0"><xsl:copy-of select="$text"/></xsl:when>
|
||||
<xsl:otherwise>
|
||||
<text:list>
|
||||
<text:list-item>
|
||||
<xsl:call-template name="insertList">
|
||||
<xsl:with-param name="text" select="$text"/>
|
||||
<xsl:with-param name="depth" select="$depth - 1"/>
|
||||
</xsl:call-template>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="hook" />
|
||||
|
||||
|
||||
<!-- Give links out. -->
|
||||
<xsl:template match="@LINK">
|
||||
<text:p text:style-name="Standard">
|
||||
<xsl:element name="text:a" namespace="text">
|
||||
<xsl:attribute namespace="xlink" name="xlink:type">simple</xsl:attribute>
|
||||
<xsl:attribute namespace="xlink" name="xlink:href">
|
||||
<!-- Convert relative links, such that they start with "../".
|
||||
This is due to the fact, that OOo calculates all relative links from the document itself! -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with(.,'/') or contains(.,':')">
|
||||
<!-- absolute link -->
|
||||
<xsl:value-of select="." />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- relative link, put "../" at the front -->
|
||||
<xsl:text>../</xsl:text><xsl:value-of select="." />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="." />
|
||||
</xsl:element>
|
||||
</text:p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-nodecontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<xsl:choose>
|
||||
<xsl:when test="richcontent[@TYPE='NODE']">
|
||||
<xsl:apply-templates select="richcontent[@TYPE='NODE']/html/body"
|
||||
mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style" />
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$style = ''">
|
||||
<!--no style for headings. -->
|
||||
<xsl:call-template name="textnode" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="text:p">
|
||||
<xsl:attribute name="text:style-name"><xsl:value-of
|
||||
select="$style" /></xsl:attribute>
|
||||
<xsl:call-template name="textnode" />
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template> <!-- xsl:template name="output-nodecontent" -->
|
||||
|
||||
<xsl:template name="output-notecontent">
|
||||
<xsl:if test="richcontent[@TYPE='NOTE']">
|
||||
<xsl:apply-templates select="richcontent[@TYPE='NOTE']/html/body"
|
||||
mode="richcontent">
|
||||
<xsl:with-param name="style">Standard</xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template> <!-- xsl:template name="output-note" -->
|
||||
|
||||
|
||||
<xsl:template name="textnode">
|
||||
<xsl:call-template name="format_text">
|
||||
<xsl:with-param name="nodetext">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@TEXT = ''">
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="@TEXT" />
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template> <!-- xsl:template name="textnode" -->
|
||||
|
||||
|
||||
<!-- replace ASCII line breaks through ODF line breaks (br) -->
|
||||
<xsl:template name="format_text">
|
||||
<xsl:param name="nodetext"></xsl:param>
|
||||
<xsl:if test="string-length(substring-after($nodetext,'
')) = 0">
|
||||
<xsl:value-of select="$nodetext" />
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(substring-after($nodetext,'
')) > 0">
|
||||
<xsl:value-of select="substring-before($nodetext,'
')" />
|
||||
<text:line-break />
|
||||
<xsl:call-template name="format_text">
|
||||
<xsl:with-param name="nodetext">
|
||||
<xsl:value-of select="substring-after($nodetext,'
')" />
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template> <!-- xsl:template name="format_text" -->
|
||||
|
||||
<xsl:template match="body" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<!-- <xsl:copy-of select="string(.)"/> -->
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
<xsl:template match="text()" mode="richcontent">
|
||||
<xsl:copy-of select="string(.)" />
|
||||
</xsl:template>
|
||||
<xsl:template match="br" mode="richcontent">
|
||||
<text:line-break />
|
||||
</xsl:template>
|
||||
<xsl:template match="b" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:span text:style-name="T1">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:span>
|
||||
</xsl:template>
|
||||
<xsl:template match="p" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$style = ''">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:when test="@style='text-align: center'">
|
||||
<text:p text:style-name="P3">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="@style='text-align: right'">
|
||||
<text:p text:style-name="P4">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="@style='text-align: justify'">
|
||||
<text:p text:style-name="P5">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="text:p">
|
||||
<xsl:attribute name="text:style-name"><xsl:value-of
|
||||
select="$style" /></xsl:attribute>
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="i" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:span text:style-name="T2">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:span>
|
||||
</xsl:template>
|
||||
<xsl:template match="u" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:span text:style-name="T3">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:span>
|
||||
</xsl:template>
|
||||
<xsl:template match="ul" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list text:style-name="L1">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontentul">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:list>
|
||||
<text:p text:style-name="P3" />
|
||||
</xsl:template>
|
||||
<xsl:template match="ol" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list text:style-name="L2">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontentol">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:list>
|
||||
<text:p text:style-name="P3" />
|
||||
</xsl:template>
|
||||
<xsl:template match="li" mode="richcontentul">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P1"><!--
|
||||
-->
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates><!--
|
||||
-->
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</xsl:template>
|
||||
<xsl:template match="li" mode="richcontentol">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P2"><!--
|
||||
-->
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"></xsl:with-param>
|
||||
</xsl:apply-templates><!--
|
||||
-->
|
||||
</text:p>
|
||||
</text:list-item>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
<text:list-item> <text:p text:style-name="P1">b </text:list-item>
|
||||
<text:list-item> <text:p text:style-name="P1">c</text:p>
|
||||
</text:list-item> <text:p text:style-name="P2"/>
|
||||
-->
|
||||
<!--
|
||||
<text:ordered-list text:style-name="L2"> <text:list-item> <text:p
|
||||
text:style-name="P3">1</text:p> </text:list-item> <text:list-item>
|
||||
<text:p text:style-name="P3">2</text:p> </text:list-item>
|
||||
<text:list-item> <text:p text:style-name="P3">3</text:p>
|
||||
</text:list-item> </text:ordered-list> <text:p text:style-name="P2"/>
|
||||
-->
|
||||
<!--
|
||||
Table: <table:table table:name="Table1" table:style-name="Table1">
|
||||
<table:table-column table:style-name="Table1.A"
|
||||
table:number-columns-repeated="3"/> <table:table-row>
|
||||
<table:table-cell table:style-name="Table1.A1"
|
||||
table:value-type="string"> <text:p text:style-name="Table
|
||||
Contents">T11</text:p> </table:table-cell> <table:table-cell
|
||||
table:style-name="Table1.A1" table:value-type="string"> <text:p
|
||||
text:style-name="Table Contents">T21</text:p> </table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C1"
|
||||
table:value-type="string"> <text:p text:style-name="Table
|
||||
Contents">T31</text:p> </table:table-cell> </table:table-row>
|
||||
<table:table-row> <table:table-cell table:style-name="Table1.A2"
|
||||
table:value-type="string"> <text:p text:style-name="Table
|
||||
Contents">T12</text:p> </table:table-cell> <table:table-cell
|
||||
table:style-name="Table1.A2" table:value-type="string"> <text:p
|
||||
text:style-name="Table Contents">T22</text:p> </table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C2"
|
||||
table:value-type="string"> <text:p text:style-name="Table
|
||||
Contents">T32</text:p> </table:table-cell> </table:table-row>
|
||||
<table:table-row> <table:table-cell table:style-name="Table1.A2"
|
||||
table:value-type="string"> <text:p text:style-name="Table
|
||||
Contents">T13</text:p> </table:table-cell> <table:table-cell
|
||||
table:style-name="Table1.A2" table:value-type="string"> <text:p
|
||||
text:style-name="Table Contents">T23</text:p> </table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C2"
|
||||
table:value-type="string"> <text:p text:style-name="Table
|
||||
Contents">T32</text:p> </table:table-cell> </table:table-row>
|
||||
</table:table>
|
||||
-->
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1,55 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!--
|
||||
adapted from mm2oowriter.xsl by Ondrej Popp
|
||||
/*FreeMind - A Program for creating and viewing Mindmaps
|
||||
*Copyright (C) 2000-2008 Christian Foltin and others.
|
||||
*
|
||||
*See COPYING for Details
|
||||
*
|
||||
*This program is free software; you can redistribute it and/or
|
||||
*modify it under the terms of the GNU General Public License
|
||||
*as published by the Free Software Foundation; either version 2
|
||||
*of the License, or (at your option) any later version.
|
||||
*
|
||||
*This program is distributed in the hope that it will be useful,
|
||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
*GNU General Public License for more details.
|
||||
*
|
||||
*You should have received a copy of the GNU General Public License
|
||||
*along with this program; if not, write to the Free Software
|
||||
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
-->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
|
||||
|
||||
<xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8" omit-xml-declaration="no"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
|
||||
<xsl:template match="map">
|
||||
<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0">
|
||||
<manifest:file-entry manifest:media-type="application/vnd.oasis.opendocument.text" manifest:full-path="/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/statusbar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/accelerator/current.xml"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/accelerator/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/floater/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/popupmenu/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/progressbar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/menubar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/toolbar/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/images/Bitmaps/"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Configurations2/images/"/>
|
||||
<manifest:file-entry manifest:media-type="application/vnd.sun.xml.ui.configuration" manifest:full-path="Configurations2/"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="content.xml"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="styles.xml"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="meta.xml"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Thumbnails/thumbnail.png"/>
|
||||
<manifest:file-entry manifest:media-type="" manifest:full-path="Thumbnails/"/>
|
||||
<manifest:file-entry manifest:media-type="text/xml" manifest:full-path="settings.xml"/>
|
||||
</manifest:manifest>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,540 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*FreeMind - A Program for creating and viewing Mindmaps
|
||||
*Copyright (C) 2000-2008 Christian Foltin and others.
|
||||
*
|
||||
*See COPYING for Details
|
||||
*
|
||||
*This program is free software; you can redistribute it and/or
|
||||
*modify it under the terms of the GNU General Public License
|
||||
*as published by the Free Software Foundation; either version 2
|
||||
*of the License, or (at your option) any later version.
|
||||
*
|
||||
*This program is distributed in the hope that it will be useful,
|
||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
*GNU General Public License for more details.
|
||||
*
|
||||
*You should have received a copy of the GNU General Public License
|
||||
*along with this program; if not, write to the Free Software
|
||||
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
-->
|
||||
<xsl:stylesheet version="1.0" xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
|
||||
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
|
||||
xmlns:math="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
|
||||
xmlns:ooo="http://openoffice.org/2004/office"
|
||||
xmlns:ooow="http://openoffice.org/2004/writer"
|
||||
xmlns:oooc="http://openoffice.org/2004/calc"
|
||||
xmlns:dom="http://www.w3.org/2001/xml-events"
|
||||
xmlns:xforms="http://www.w3.org/2002/xforms"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
||||
<xsl:output method="xml" version="1.0" indent="yes" encoding="UTF-8" omit-xml-declaration="no"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
|
||||
<xsl:template match="map">
|
||||
<office:document-content
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
|
||||
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
|
||||
xmlns:math="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
|
||||
xmlns:ooo="http://openoffice.org/2004/office"
|
||||
xmlns:ooow="http://openoffice.org/2004/writer"
|
||||
xmlns:oooc="http://openoffice.org/2004/calc"
|
||||
xmlns:dom="http://www.w3.org/2001/xml-events"
|
||||
xmlns:xforms="http://www.w3.org/2002/xforms"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
office:version="1.0">
|
||||
<office:scripts />
|
||||
<office:font-face-decls>
|
||||
<style:font-face style:name="StarSymbol"
|
||||
svg:font-family="StarSymbol" />
|
||||
<style:font-face style:name="DejaVu Sans"
|
||||
svg:font-family="'DejaVu Sans'"
|
||||
style:font-family-generic="roman" style:font-pitch="variable" />
|
||||
<style:font-face style:name="DejaVu Sans1"
|
||||
svg:font-family="'DejaVu Sans'"
|
||||
style:font-family-generic="swiss" style:font-pitch="variable" />
|
||||
<style:font-face style:name="DejaVu Sans2"
|
||||
svg:font-family="'DejaVu Sans'"
|
||||
style:font-family-generic="system" style:font-pitch="variable" />
|
||||
</office:font-face-decls>
|
||||
<office:automatic-styles>
|
||||
<style:style style:name="P1" style:family="paragraph"
|
||||
style:parent-style-name="Text_20_body" style:list-style-name="L1" />
|
||||
<style:style style:name="P3" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="center" style:justify-single-word="false"/>
|
||||
</style:style>
|
||||
<style:style style:name="P4" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="end" style:justify-single-word="false"/>
|
||||
</style:style>
|
||||
<style:style style:name="P5" style:family="paragraph" style:parent-style-name="Standard">
|
||||
<style:paragraph-properties fo:text-align="justify" style:justify-single-word="false"/>
|
||||
</style:style>
|
||||
<style:style style:name="T1" style:family="text">
|
||||
<style:text-properties fo:font-weight="bold" style:font-weight-asian="bold" style:font-weight-complex="bold"/>
|
||||
</style:style>
|
||||
<style:style style:name="T2" style:family="text">
|
||||
<style:text-properties fo:font-style="italic" style:font-style-asian="italic" style:font-style-complex="italic"/>
|
||||
</style:style>
|
||||
<style:style style:name="T3" style:family="text">
|
||||
<style:text-properties style:text-underline-style="solid" style:text-underline-width="auto" style:text-underline-color="font-color"/>
|
||||
</style:style>
|
||||
<text:list-style style:name="L1">
|
||||
<text:list-level-style-bullet text:level="1"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="●">
|
||||
<style:list-level-properties text:space-before="0.635cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="2"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="○">
|
||||
<style:list-level-properties text:space-before="1.27cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="3"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="■">
|
||||
<style:list-level-properties text:space-before="1.905cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="4"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="●">
|
||||
<style:list-level-properties text:space-before="2.54cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="5"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="○">
|
||||
<style:list-level-properties text:space-before="3.175cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="6"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="■">
|
||||
<style:list-level-properties text:space-before="3.81cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="7"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="●">
|
||||
<style:list-level-properties text:space-before="4.445cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="8"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="○">
|
||||
<style:list-level-properties text:space-before="5.08cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="9"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="■">
|
||||
<style:list-level-properties text:space-before="5.715cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
<text:list-level-style-bullet text:level="10"
|
||||
text:style-name="Bullet_20_Symbols" style:num-suffix="."
|
||||
text:bullet-char="●">
|
||||
<style:list-level-properties text:space-before="6.35cm"
|
||||
text:min-label-width="0.635cm" />
|
||||
<style:text-properties style:font-name="StarSymbol" />
|
||||
</text:list-level-style-bullet>
|
||||
</text:list-style>
|
||||
</office:automatic-styles>
|
||||
<office:body>
|
||||
<office:text>
|
||||
<office:forms form:automatic-focus="false"
|
||||
form:apply-design-mode="false" />
|
||||
<text:sequence-decls>
|
||||
<text:sequence-decl text:display-outline-level="0"
|
||||
text:name="Illustration" />
|
||||
<text:sequence-decl text:display-outline-level="0"
|
||||
text:name="Table" />
|
||||
<text:sequence-decl text:display-outline-level="0"
|
||||
text:name="Text" />
|
||||
<text:sequence-decl text:display-outline-level="0"
|
||||
text:name="Drawing" />
|
||||
</text:sequence-decls>
|
||||
<xsl:apply-templates select="node"/>
|
||||
</office:text>
|
||||
</office:body>
|
||||
|
||||
</office:document-content>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$depth=0"><!-- Title -->
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<xsl:with-param name="style">Title</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:apply-templates select="hook|@LINK"/>
|
||||
<xsl:call-template name="output-notecontent" />
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="ancestor::node[@FOLDED='true']">
|
||||
<text:list text:style-name="L1">
|
||||
<text:list-item>
|
||||
<xsl:call-template
|
||||
name="output-nodecontent">
|
||||
<xsl:with-param name="style">Standard</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
<xsl:apply-templates select="hook|@LINK"/>
|
||||
<xsl:call-template name="output-notecontent" />
|
||||
<xsl:apply-templates select="node"/>
|
||||
</text:list-item>
|
||||
</text:list>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:variable name="heading_level"><xsl:text>Heading_20_</xsl:text><xsl:value-of
|
||||
select="$depth"/></xsl:variable>
|
||||
<xsl:element name="text:h">
|
||||
<xsl:attribute name="text:style-name" ><!--
|
||||
--><xsl:value-of select="$heading_level"/><!--
|
||||
--></xsl:attribute>
|
||||
<xsl:attribute name="text:outline-level"><xsl:value-of
|
||||
select="$depth"/></xsl:attribute>
|
||||
<xsl:call-template name="output-nodecontent">
|
||||
<!--No Style for Headings.-->
|
||||
<xsl:with-param name="style"></xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:element>
|
||||
<xsl:apply-templates select="hook|@LINK"/>
|
||||
<xsl:call-template name="output-notecontent" />
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="hook"/>
|
||||
|
||||
<!-- <xsl:template match="hook[@NAME='accessories/plugins/NodeNote.properties']">
|
||||
<xsl:choose>
|
||||
<xsl:when test="./text">
|
||||
<text:p text:style-name="Standard">
|
||||
<xsl:value-of select="./text"/>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node" mode="childoutputOrdered">
|
||||
<xsl:param name="nodeText"></xsl:param>
|
||||
<text:ordered-list text:style-name="L1"
|
||||
text:continue-numbering="true">
|
||||
<text:list-item>
|
||||
<xsl:apply-templates select=".." mode="childoutputOrdered">
|
||||
<xsl:with-param name="nodeText"><xsl:copy-of
|
||||
select="$nodeText"/></xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</text:list-item>
|
||||
</text:ordered-list>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<xsl:template match="map" mode="childoutputOrdered">
|
||||
<xsl:param name="nodeText"></xsl:param>
|
||||
<xsl:copy-of select="$nodeText"/>
|
||||
</xsl:template>
|
||||
-->
|
||||
<xsl:template match="node" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:apply-templates select=".." mode="depthMesurement">
|
||||
<xsl:with-param name="depth" select="$depth + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
<xsl:template match="map" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:value-of select="$depth"/>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Give links out. -->
|
||||
<xsl:template match="@LINK">
|
||||
<text:p text:style-name="Standard">
|
||||
<xsl:element name="text:a" namespace="text">
|
||||
<xsl:attribute namespace="xlink" name="xlink:type">simple</xsl:attribute>
|
||||
<xsl:attribute namespace="xlink" name="xlink:href">
|
||||
<!-- Convert relative links, such that they start with "../".
|
||||
This is due to the fact, that OOo calculates all relative links from the document itself! -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="starts-with(.,'/') or contains(.,':')">
|
||||
<!-- absolute link -->
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<!-- relative link, put "../" at the front -->
|
||||
<xsl:text>../</xsl:text><xsl:value-of select="."/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute>
|
||||
<xsl:value-of select="."/>
|
||||
</xsl:element>
|
||||
</text:p>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-nodecontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<xsl:choose>
|
||||
<xsl:when test="richcontent[@TYPE='NODE']">
|
||||
<xsl:apply-templates select="richcontent[@TYPE='NODE']/html/body" mode="richcontent">
|
||||
<xsl:with-param name="style" select="$style"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$style = ''">
|
||||
<!--no style for headings. -->
|
||||
<xsl:call-template name="textnode" />
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="text:p">
|
||||
<xsl:attribute name="text:style-name"><xsl:value-of select="$style"/></xsl:attribute>
|
||||
<xsl:call-template name="textnode" />
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template> <!-- xsl:template name="output-nodecontent" -->
|
||||
|
||||
<xsl:template name="output-notecontent">
|
||||
<xsl:if test="richcontent[@TYPE='NOTE']">
|
||||
<xsl:apply-templates select="richcontent[@TYPE='NOTE']/html/body" mode="richcontent" >
|
||||
<xsl:with-param name="style">Standard</xsl:with-param>
|
||||
</xsl:apply-templates>
|
||||
</xsl:if>
|
||||
</xsl:template> <!-- xsl:template name="output-note" -->
|
||||
|
||||
|
||||
<xsl:template name="textnode">
|
||||
<xsl:call-template name="format_text">
|
||||
<xsl:with-param name="nodetext">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@TEXT = ''"><xsl:text> </xsl:text></xsl:when>
|
||||
<xsl:otherwise><xsl:value-of select="@TEXT" /></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:template> <!-- xsl:template name="textnode" -->
|
||||
|
||||
|
||||
<!-- replace ASCII line breaks through ODF line breaks (br) -->
|
||||
<xsl:template name="format_text">
|
||||
<xsl:param name="nodetext"></xsl:param>
|
||||
<xsl:if test="string-length(substring-after($nodetext,'
')) = 0">
|
||||
<xsl:value-of select="$nodetext" />
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(substring-after($nodetext,'
')) > 0">
|
||||
<xsl:value-of select="substring-before($nodetext,'
')" />
|
||||
<text:line-break/>
|
||||
<xsl:call-template name="format_text">
|
||||
<xsl:with-param name="nodetext">
|
||||
<xsl:value-of select="substring-after($nodetext,'
')" />
|
||||
</xsl:with-param>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template> <!-- xsl:template name="format_text" -->
|
||||
|
||||
<xsl:template match="body" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<!-- <xsl:copy-of select="string(.)"/> -->
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</xsl:template>
|
||||
<xsl:template match="text()" mode="richcontent"> <xsl:copy-of select="string(.)"/></xsl:template>
|
||||
<xsl:template match="br" mode="richcontent">
|
||||
<text:line-break/>
|
||||
</xsl:template>
|
||||
<xsl:template match="b" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:span text:style-name="T1">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:span>
|
||||
</xsl:template>
|
||||
<xsl:template match="p" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$style = ''">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:when test="@style='text-align: center'">
|
||||
<text:p text:style-name="P3">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="@style='text-align: right'">
|
||||
<text:p text:style-name="P4">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:when test="@style='text-align: justify'">
|
||||
<text:p text:style-name="P5">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:p>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:element name="text:p">
|
||||
<xsl:attribute name="text:style-name"><xsl:value-of select="$style"/></xsl:attribute>
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</xsl:element>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="i" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:span text:style-name="T2">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:span>
|
||||
</xsl:template>
|
||||
<xsl:template match="u" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:span text:style-name="T3">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:span>
|
||||
</xsl:template>
|
||||
<xsl:template match="ul" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list text:style-name="L1">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontentul"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:list>
|
||||
<text:p text:style-name="P3"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="ol" mode="richcontent">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list text:style-name="L2">
|
||||
<xsl:apply-templates select="text()|*" mode="richcontentol"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates>
|
||||
</text:list>
|
||||
<text:p text:style-name="P3"/>
|
||||
</xsl:template>
|
||||
<xsl:template match="li" mode="richcontentul">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P1"><!--
|
||||
--><xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates><!--
|
||||
--></text:p>
|
||||
</text:list-item>
|
||||
</xsl:template>
|
||||
<xsl:template match="li" mode="richcontentol">
|
||||
<xsl:param name="style">Standard</xsl:param>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P2"><!--
|
||||
--><xsl:apply-templates select="text()|*" mode="richcontent"><xsl:with-param name="style" select="$style"></xsl:with-param></xsl:apply-templates><!--
|
||||
--></text:p>
|
||||
</text:list-item>
|
||||
</xsl:template>
|
||||
|
||||
<!--
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P1">b
|
||||
</text:list-item>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P1">c</text:p>
|
||||
</text:list-item>
|
||||
<text:p text:style-name="P2"/>
|
||||
-->
|
||||
<!--
|
||||
<text:ordered-list text:style-name="L2">
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P3">1</text:p>
|
||||
</text:list-item>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P3">2</text:p>
|
||||
</text:list-item>
|
||||
<text:list-item>
|
||||
<text:p text:style-name="P3">3</text:p>
|
||||
</text:list-item>
|
||||
</text:ordered-list>
|
||||
<text:p text:style-name="P2"/>
|
||||
-->
|
||||
<!-- Table:
|
||||
<table:table table:name="Table1" table:style-name="Table1">
|
||||
<table:table-column table:style-name="Table1.A" table:number-columns-repeated="3"/>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Table1.A1" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T11</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.A1" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T21</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C1" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T31</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T12</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T22</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T32</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
<table:table-row>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T13</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.A2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T23</text:p>
|
||||
</table:table-cell>
|
||||
<table:table-cell table:style-name="Table1.C2" table:value-type="string">
|
||||
<text:p text:style-name="Table Contents">T32</text:p>
|
||||
</table:table-cell>
|
||||
</table:table-row>
|
||||
</table:table>
|
||||
-->
|
||||
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,275 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
/*FreeMind - A Program for creating and viewing Mindmaps
|
||||
*Copyright (C) 2000-2008 Christian Foltin and others.
|
||||
*
|
||||
*See COPYING for Details
|
||||
*
|
||||
*This program is free software; you can redistribute it and/or
|
||||
*modify it under the terms of the GNU General Public License
|
||||
*as published by the Free Software Foundation; either version 2
|
||||
*of the License, or (at your option) any later version.
|
||||
*
|
||||
*This program is distributed in the hope that it will be useful,
|
||||
*but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
*MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
*GNU General Public License for more details.
|
||||
*
|
||||
*You should have received a copy of the GNU General Public License
|
||||
*along with this program; if not, write to the Free Software
|
||||
*Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*
|
||||
*/
|
||||
-->
|
||||
<office:document-styles
|
||||
xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
|
||||
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
|
||||
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
|
||||
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
|
||||
xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
|
||||
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
|
||||
xmlns:xlink="http://www.w3.org/1999/xlink"
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
|
||||
xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
|
||||
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
|
||||
xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
|
||||
xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
|
||||
xmlns:math="http://www.w3.org/1998/Math/MathML"
|
||||
xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
|
||||
xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
|
||||
xmlns:ooo="http://openoffice.org/2004/office"
|
||||
xmlns:ooow="http://openoffice.org/2004/writer"
|
||||
xmlns:oooc="http://openoffice.org/2004/calc"
|
||||
xmlns:dom="http://www.w3.org/2001/xml-events" office:version="1.0">
|
||||
<office:font-face-decls>
|
||||
<style:font-face style:name="StarSymbol"
|
||||
svg:font-family="StarSymbol" />
|
||||
<style:font-face style:name="DejaVu Sans"
|
||||
svg:font-family="'DejaVu Sans'"
|
||||
style:font-family-generic="roman" style:font-pitch="variable" />
|
||||
<style:font-face style:name="DejaVu Sans1"
|
||||
svg:font-family="'DejaVu Sans'"
|
||||
style:font-family-generic="swiss" style:font-pitch="variable" />
|
||||
<style:font-face style:name="DejaVu Sans2"
|
||||
svg:font-family="'DejaVu Sans'"
|
||||
style:font-family-generic="system" style:font-pitch="variable" />
|
||||
</office:font-face-decls>
|
||||
<office:styles>
|
||||
<style:default-style style:family="graphic">
|
||||
<style:graphic-properties draw:shadow-offset-x="0.3cm"
|
||||
draw:shadow-offset-y="0.3cm"
|
||||
draw:start-line-spacing-horizontal="0.283cm"
|
||||
draw:start-line-spacing-vertical="0.283cm"
|
||||
draw:end-line-spacing-horizontal="0.283cm"
|
||||
draw:end-line-spacing-vertical="0.283cm"
|
||||
style:flow-with-text="false" />
|
||||
<style:paragraph-properties
|
||||
style:text-autospace="ideograph-alpha" style:line-break="strict"
|
||||
style:writing-mode="lr-tb"
|
||||
style:font-independent-line-spacing="false">
|
||||
<style:tab-stops />
|
||||
</style:paragraph-properties>
|
||||
<style:text-properties style:use-window-font-color="true"
|
||||
fo:font-size="12pt"
|
||||
style:font-size-asian="12pt" style:language-asian="de"
|
||||
style:country-asian="DE" style:font-size-complex="12pt"
|
||||
style:language-complex="de" style:country-complex="DE" />
|
||||
</style:default-style>
|
||||
<style:default-style style:family="paragraph">
|
||||
<style:paragraph-properties
|
||||
fo:hyphenation-ladder-count="no-limit"
|
||||
style:text-autospace="ideograph-alpha"
|
||||
style:punctuation-wrap="hanging" style:line-break="strict"
|
||||
style:tab-stop-distance="1.251cm" style:writing-mode="page" />
|
||||
<style:text-properties style:use-window-font-color="true"
|
||||
style:font-name="DejaVu Sans" fo:font-size="12pt"
|
||||
style:font-name-asian="DejaVu Sans2"
|
||||
style:font-size-asian="12pt" style:language-asian="de"
|
||||
style:country-asian="DE" style:font-name-complex="DejaVu Sans2"
|
||||
style:font-size-complex="12pt" style:language-complex="de"
|
||||
style:country-complex="DE" fo:hyphenate="false"
|
||||
fo:hyphenation-remain-char-count="2"
|
||||
fo:hyphenation-push-char-count="2" />
|
||||
</style:default-style>
|
||||
<style:default-style style:family="table">
|
||||
<style:table-properties table:border-model="collapsing" />
|
||||
</style:default-style>
|
||||
<style:default-style style:family="table-row">
|
||||
<style:table-row-properties fo:keep-together="auto" />
|
||||
</style:default-style>
|
||||
<style:style style:name="Standard" style:family="paragraph"
|
||||
style:class="text" />
|
||||
<style:style style:name="Text_20_body"
|
||||
style:display-name="Text body" style:family="paragraph"
|
||||
style:parent-style-name="Standard" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0cm"
|
||||
fo:margin-bottom="0.212cm" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading" style:family="paragraph"
|
||||
style:parent-style-name="Standard"
|
||||
style:next-style-name="Text_20_body" style:class="text">
|
||||
<style:paragraph-properties fo:margin-top="0.423cm"
|
||||
fo:margin-bottom="0.212cm" fo:keep-with-next="always" />
|
||||
<style:text-properties style:font-name="DejaVu Sans1"
|
||||
fo:font-size="14pt" style:font-name-asian="DejaVu Sans2"
|
||||
style:font-size-asian="14pt" style:font-name-complex="DejaVu Sans2"
|
||||
style:font-size-complex="14pt" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_1"
|
||||
style:display-name="Heading 1" style:family="paragraph"
|
||||
style:parent-style-name="Heading"
|
||||
style:next-style-name="Text_20_body" style:class="text"
|
||||
style:default-outline-level="1">
|
||||
<style:text-properties fo:font-size="115%"
|
||||
fo:font-weight="bold" style:font-size-asian="115%"
|
||||
style:font-weight-asian="bold" style:font-size-complex="115%"
|
||||
style:font-weight-complex="bold" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_2"
|
||||
style:display-name="Heading 2" style:family="paragraph"
|
||||
style:parent-style-name="Heading"
|
||||
style:next-style-name="Text_20_body" style:class="text"
|
||||
style:default-outline-level="2">
|
||||
<style:text-properties fo:font-size="14pt"
|
||||
fo:font-style="italic" fo:font-weight="bold"
|
||||
style:font-size-asian="14pt" style:font-style-asian="italic"
|
||||
style:font-weight-asian="bold" style:font-size-complex="14pt"
|
||||
style:font-style-complex="italic" style:font-weight-complex="bold" />
|
||||
</style:style>
|
||||
<style:style style:name="Heading_20_3"
|
||||
style:display-name="Heading 3" style:family="paragraph"
|
||||
style:parent-style-name="Heading"
|
||||
style:next-style-name="Text_20_body" style:class="text"
|
||||
style:default-outline-level="3">
|
||||
<style:text-properties fo:font-size="14pt"
|
||||
fo:font-weight="bold" style:font-size-asian="14pt"
|
||||
style:font-weight-asian="bold" style:font-size-complex="14pt"
|
||||
style:font-weight-complex="bold" />
|
||||
</style:style>
|
||||
<style:style style:name="List" style:family="paragraph"
|
||||
style:parent-style-name="Text_20_body" style:class="list" />
|
||||
<style:style style:name="Caption" style:family="paragraph"
|
||||
style:parent-style-name="Standard" style:class="extra">
|
||||
<style:paragraph-properties fo:margin-top="0.212cm"
|
||||
fo:margin-bottom="0.212cm" text:number-lines="false"
|
||||
text:line-number="0" />
|
||||
<style:text-properties fo:font-size="12pt"
|
||||
fo:font-style="italic" style:font-size-asian="12pt"
|
||||
style:font-style-asian="italic" style:font-size-complex="12pt"
|
||||
style:font-style-complex="italic" />
|
||||
</style:style>
|
||||
<style:style style:name="Index" style:family="paragraph"
|
||||
style:parent-style-name="Standard" style:class="index">
|
||||
<style:paragraph-properties text:number-lines="false"
|
||||
text:line-number="0" />
|
||||
</style:style>
|
||||
<style:style style:name="Title" style:family="paragraph"
|
||||
style:parent-style-name="Heading" style:next-style-name="Subtitle"
|
||||
style:class="chapter">
|
||||
<style:paragraph-properties fo:text-align="center"
|
||||
style:justify-single-word="false" />
|
||||
<style:text-properties fo:font-size="18pt"
|
||||
fo:font-weight="bold" style:font-size-asian="18pt"
|
||||
style:font-weight-asian="bold" style:font-size-complex="18pt"
|
||||
style:font-weight-complex="bold" />
|
||||
</style:style>
|
||||
<style:style style:name="Subtitle" style:family="paragraph"
|
||||
style:parent-style-name="Heading"
|
||||
style:next-style-name="Text_20_body" style:class="chapter">
|
||||
<style:paragraph-properties fo:text-align="center"
|
||||
style:justify-single-word="false" />
|
||||
<style:text-properties fo:font-size="14pt"
|
||||
fo:font-style="italic" style:font-size-asian="14pt"
|
||||
style:font-style-asian="italic" style:font-size-complex="14pt"
|
||||
style:font-style-complex="italic" />
|
||||
</style:style>
|
||||
<style:style style:name="Bullet_20_Symbols"
|
||||
style:display-name="Bullet Symbols" style:family="text">
|
||||
<style:text-properties style:font-name="StarSymbol"
|
||||
fo:font-size="9pt" style:font-name-asian="StarSymbol"
|
||||
style:font-size-asian="9pt" style:font-name-complex="StarSymbol"
|
||||
style:font-size-complex="9pt" />
|
||||
</style:style>
|
||||
<text:outline-style>
|
||||
<text:outline-level-style text:level="1"
|
||||
style:num-format="1">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="2"
|
||||
style:num-format="1" text:display-levels="2">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="3"
|
||||
style:num-format="1" text:display-levels="3">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="4"
|
||||
style:num-format="1" text:display-levels="4">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="5"
|
||||
style:num-format="1" text:display-levels="5">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="6"
|
||||
style:num-format="1" text:display-levels="6">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="7"
|
||||
style:num-format="1" text:display-levels="7">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="8"
|
||||
style:num-format="1" text:display-levels="8">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="9"
|
||||
style:num-format="1" text:display-levels="9">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
<text:outline-level-style text:level="10"
|
||||
style:num-format="1" text:display-levels="10">
|
||||
<style:list-level-properties
|
||||
text:min-label-distance="0.381cm" />
|
||||
</text:outline-level-style>
|
||||
</text:outline-style>
|
||||
<text:notes-configuration text:note-class="footnote"
|
||||
style:num-format="1" text:start-value="0"
|
||||
text:footnotes-position="page" text:start-numbering-at="document" />
|
||||
<text:notes-configuration text:note-class="endnote"
|
||||
style:num-format="i" text:start-value="0" />
|
||||
<text:linenumbering-configuration text:number-lines="false"
|
||||
text:offset="0.499cm" style:num-format="1"
|
||||
text:number-position="left" text:increment="5" />
|
||||
</office:styles>
|
||||
<office:automatic-styles>
|
||||
<style:page-layout style:name="pm1">
|
||||
<style:page-layout-properties fo:page-width="20.999cm"
|
||||
fo:page-height="29.699cm" style:num-format="1"
|
||||
style:print-orientation="portrait" fo:margin-top="2cm"
|
||||
fo:margin-bottom="2cm" fo:margin-left="2cm" fo:margin-right="2cm"
|
||||
style:writing-mode="lr-tb" style:footnote-max-height="0cm">
|
||||
<style:footnote-sep style:width="0.018cm"
|
||||
style:distance-before-sep="0.101cm"
|
||||
style:distance-after-sep="0.101cm" style:adjustment="left"
|
||||
style:rel-width="25%" style:color="#000000" />
|
||||
</style:page-layout-properties>
|
||||
<style:header-style />
|
||||
<style:footer-style />
|
||||
</style:page-layout>
|
||||
</office:automatic-styles>
|
||||
<office:master-styles>
|
||||
<style:master-page style:name="Standard"
|
||||
style:page-layout-name="pm1" />
|
||||
</office:master-styles>
|
||||
</office:document-styles>
|
||||
@@ -1,85 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
|
||||
<!--
|
||||
: This code released under the GPL.
|
||||
: (http://www.gnu.org/copyleft/gpl.html)
|
||||
Document : mm2text.xsl
|
||||
Created on : 01 February 2004, 17:17
|
||||
Author : joerg feuerhake joerg.feuerhake@free-penguin.org
|
||||
Description: transforms freemind mm format to html, handles crossrefs and adds numbering. feel free to customize it while leaving the ancient authors
|
||||
mentioned. thank you
|
||||
ChangeLog:
|
||||
|
||||
See: http://freemind.sourceforge.net/
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="text" indent="no" encoding="UTF-8"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
<xsl:key name="refid" match="node" use="@ID"/>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node">
|
||||
<xsl:call-template name="indent">
|
||||
<xsl:with-param name="string" select="'	'"/>
|
||||
<xsl:with-param name="times" select="count(ancestor::node())-2"/>
|
||||
</xsl:call-template>
|
||||
|
||||
<xsl:variable name="target" select="arrowlink/@DESTINATION"/>
|
||||
<xsl:number level="multiple" count="node" format="1"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
|
||||
<!-- Generate Link -->
|
||||
<xsl:if test="@LINK">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="indent">
|
||||
<xsl:with-param name="string" select="'	'"/>
|
||||
<xsl:with-param name="times" select="count(ancestor::node())-1"/>
|
||||
</xsl:call-template>
|
||||
<xsl:text>* Link: </xsl:text>
|
||||
<xsl:value-of select="@LINK"/>
|
||||
</xsl:if>
|
||||
|
||||
<!-- Generate Note -->
|
||||
<xsl:apply-templates select="richcontent[@TYPE='NOTE']"/>
|
||||
<xsl:text> </xsl:text>
|
||||
|
||||
<!-- Generate References -->
|
||||
<xsl:if test="arrowlink/@DESTINATION != ''">
|
||||
<xsl:text> (see:</xsl:text>
|
||||
<xsl:for-each select="key('refid', $target)">
|
||||
<xsl:value-of select="@TEXT"/>
|
||||
</xsl:for-each>
|
||||
<xsl:text>)</xsl:text>
|
||||
</xsl:if>
|
||||
<xsl:apply-templates select="node"/>
|
||||
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="richcontent[@TYPE='NOTE']">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="indent">
|
||||
<xsl:with-param name="string" select="'	'"/>
|
||||
<xsl:with-param name="times" select="count(ancestor::node())-2"/>
|
||||
</xsl:call-template>
|
||||
<xsl:text>* Note: </xsl:text>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="indent">
|
||||
<xsl:param name="string" select="''"/>
|
||||
<xsl:param name="times" select="1"/>
|
||||
|
||||
<xsl:if test="number($times) > 0">
|
||||
<xsl:value-of select="$string"/>
|
||||
<xsl:call-template name="indent">
|
||||
<xsl:with-param name="string" select="$string"/>
|
||||
<xsl:with-param name="times" select="$times - 1"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -1,162 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<xsl:output method="text" indent="no"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
|
||||
<xsl:template match="map">
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- NODE -->
|
||||
<xsl:template match="node">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$depth=0">
|
||||
<xsl:text># FreeMind map "</xsl:text><xsl:value-of select="@TEXT"/><xsl:text>"
</xsl:text>
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$depth=1">
|
||||
<xsl:if test="@TEXT='RESOURCES'">
|
||||
<!--xsl:text> RESOURCES </xsl:text-->
|
||||
<xsl:apply-templates select="node" mode="shift"/>
|
||||
<xsl:apply-templates select="node" mode="resource"/>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- ATTRIBUTE -->
|
||||
<xsl:template match="attribute">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@NAME='resource'">
|
||||
</xsl:when>
|
||||
<xsl:when test="@NAME='shift' and position()=1">
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:value-of select="@NAME"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="@VALUE"/>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- ATTRIBUTE RESOURCE_ID-->
|
||||
<xsl:template match="attribute" mode="resource_id">
|
||||
<xsl:if test="@NAME='resource'">
|
||||
<xsl:if test="position()=1">
|
||||
<xsl:value-of select="@VALUE"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- NODE RESOURCE -->
|
||||
<xsl:template match="node" mode="resource">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="resource_id">
|
||||
<xsl:apply-templates select="attribute" mode="resource_id"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@TEXT='#'">
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$resource_id!=''">
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:text>resource </xsl:text><xsl:value-of select="$resource_id"/><xsl:text> "</xsl:text><xsl:value-of select="@TEXT"/><xsl:text>" {
</xsl:text>
|
||||
<xsl:apply-templates select="attribute"/>
|
||||
<xsl:apply-templates select="node" mode="resource"/>
|
||||
<!-- koniec task -->
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:text>}
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="node" mode="resource"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
|
||||
|
||||
<!-- ATTRIBUTE RESOURCE_ID-->
|
||||
<xsl:template match="attribute" mode="shift_id">
|
||||
<xsl:if test="@NAME='shift'">
|
||||
<xsl:if test="position()=1">
|
||||
<xsl:value-of select="@VALUE"/>
|
||||
</xsl:if>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node" mode="shift">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="shift_id">
|
||||
<xsl:apply-templates select="attribute" mode="shift_id"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@TEXT='#'">
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$shift_id!=''">
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:text>shift </xsl:text><xsl:value-of select="$shift_id"/><xsl:text> "</xsl:text><xsl:value-of select="@TEXT"/><xsl:text>" {
</xsl:text>
|
||||
<xsl:apply-templates select="attribute"/>
|
||||
<xsl:apply-templates select="node" mode="shift"/>
|
||||
<!-- koniec task -->
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:text>}
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="node" mode="shift"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
|
||||
<!-- Node Depth Mesurement -->
|
||||
<xsl:template match="node" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:apply-templates select=".." mode="depthMesurement">
|
||||
<xsl:with-param name="depth" select="$depth + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Map Depth Mesurement -->
|
||||
<xsl:template match="map" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:value-of select="$depth"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="spaces">
|
||||
<xsl:param name="count" select="1"/>
|
||||
<xsl:if test="$count > 0">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="spaces">
|
||||
<xsl:with-param name="count" select="$count - 1"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,114 +0,0 @@
|
||||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
|
||||
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xlink="http://www.w3.org/1999/xlink">
|
||||
<xsl:output method="text" indent="no"/>
|
||||
<xsl:strip-space elements="*"/>
|
||||
|
||||
<xsl:template match="map">
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:template>
|
||||
|
||||
<!-- NODE -->
|
||||
<xsl:template match="node">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$depth=0">
|
||||
<xsl:text># FreeMind map "</xsl:text><xsl:value-of select="@TEXT"/><xsl:text>"
</xsl:text>
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$depth=1">
|
||||
<xsl:if test="@TEXT='TASKS'">
|
||||
<!--xsl:text> TASK </xsl:text-->
|
||||
<xsl:apply-templates select="node" mode="task"/>
|
||||
</xsl:if>
|
||||
</xsl:when>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- ATTRIBUTE -->
|
||||
<xsl:template match="attribute">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@NAME='task'">
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:value-of select="@NAME"/>
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:value-of select="@VALUE"/>
|
||||
<xsl:text>
</xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- ATTRIBUTE TASK_ID-->
|
||||
<xsl:template match="attribute" mode="task_id">
|
||||
<xsl:if test="@NAME='task'">
|
||||
<xsl:value-of select="@VALUE"/>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- NODE TASK -->
|
||||
<xsl:template match="node" mode="task">
|
||||
<xsl:variable name="depth">
|
||||
<xsl:apply-templates select=".." mode="depthMesurement"/>
|
||||
</xsl:variable>
|
||||
<xsl:variable name="task_id">
|
||||
<xsl:apply-templates select="attribute" mode="task_id"/>
|
||||
</xsl:variable>
|
||||
<xsl:choose>
|
||||
<xsl:when test="@TEXT='#'">
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$task_id!=''">
|
||||
<xsl:text>
</xsl:text>
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:text>task </xsl:text><xsl:value-of select="$task_id"/><xsl:text> "</xsl:text><xsl:value-of select="@TEXT"/><xsl:text>" {
</xsl:text>
|
||||
<xsl:apply-templates select="attribute"/>
|
||||
<xsl:apply-templates select="node" mode="task"/>
|
||||
<!-- koniec task -->
|
||||
<xsl:call-template name="spaces"><xsl:with-param name="count" select="($depth - 2) * 4"/></xsl:call-template>
|
||||
<xsl:text>}
</xsl:text>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="node" mode="task"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Node Depth Mesurement -->
|
||||
<xsl:template match="node" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:apply-templates select=".." mode="depthMesurement">
|
||||
<xsl:with-param name="depth" select="$depth + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<!-- Map Depth Mesurement -->
|
||||
<xsl:template match="map" mode="depthMesurement">
|
||||
<xsl:param name="depth" select=" '0' "/>
|
||||
<xsl:value-of select="$depth"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="spaces">
|
||||
<xsl:param name="count" select="1"/>
|
||||
<xsl:if test="$count > 0">
|
||||
<xsl:text> </xsl:text>
|
||||
<xsl:call-template name="spaces">
|
||||
<xsl:with-param name="count" select="$count - 1"/>
|
||||
</xsl:call-template>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,439 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!--
|
||||
(c) by Naoki Nose, 2006, and Eric Lavarde, 2008
|
||||
This code is licensed under the GPLv2 or later.
|
||||
(http://www.gnu.org/copyleft/gpl.html)
|
||||
Check 'mm2wordml_utf8_TEMPLATE.mm' for detailed instructions on how to use
|
||||
this sheet.
|
||||
-->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
|
||||
xmlns:v="urn:schemas-microsoft-com:vml"
|
||||
xmlns:w10="urn:schemas-microsoft-com:office:word"
|
||||
xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core"
|
||||
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
|
||||
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office"
|
||||
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
|
||||
w:macrosPresent="no"
|
||||
w:embeddedObjPresent="no"
|
||||
w:ocxPresent="no"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8" standalone="yes"/>
|
||||
|
||||
<!-- the variable to be used to determine the maximum level of headings,
|
||||
it is defined by the attribute 'head-maxlevel' of the root node if it
|
||||
exists, else it's the default 4 (maximum possible is 9) -->
|
||||
<xsl:variable name="maxlevel">
|
||||
<xsl:choose>
|
||||
<xsl:when test="//map/node/attribute[@NAME='head-maxlevel']">
|
||||
<xsl:value-of select="//map/node/attribute[@NAME='head-maxlevel']/@VALUE"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:value-of select="'4'"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:variable>
|
||||
|
||||
<xsl:template match="/">
|
||||
<xsl:processing-instruction name="mso-application">progid="Word.Document"</xsl:processing-instruction>
|
||||
<w:wordDocument>
|
||||
<xsl:apply-templates mode="DocumentProperties"/>
|
||||
<xsl:call-template name="output-styles"/>
|
||||
<w:body>
|
||||
<wx:sect>
|
||||
<xsl:apply-templates mode="heading"/>
|
||||
</wx:sect>
|
||||
</w:body>
|
||||
</w:wordDocument>
|
||||
</xsl:template>
|
||||
|
||||
<!-- the 2 following templates transform the doc-* attributes from the root
|
||||
node into document properties -->
|
||||
<xsl:template match="//map" mode="DocumentProperties">
|
||||
<o:DocumentProperties>
|
||||
<o:Title>
|
||||
<xsl:value-of select="node/@TEXT"/>
|
||||
</o:Title>
|
||||
<xsl:apply-templates select="node/attribute">
|
||||
<xsl:with-param name="prefix" select="'doc'"/>
|
||||
</xsl:apply-templates>
|
||||
</o:DocumentProperties>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="attribute">
|
||||
<xsl:param name="prefix"/>
|
||||
<xsl:if test="starts-with(@NAME,concat($prefix,'-'))">
|
||||
<xsl:element name="{concat('o:',substring-after(@NAME,concat($prefix,'-')))}">
|
||||
<xsl:value-of select="@VALUE"/>
|
||||
</xsl:element>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- output each node as heading -->
|
||||
<xsl:template match="node" mode="heading">
|
||||
<xsl:param name="level" select="0"/>
|
||||
<xsl:choose> <!-- we change our mind if the NoHeading attribute is present -->
|
||||
<xsl:when test="attribute/@NAME = 'NoHeading'">
|
||||
<xsl:apply-templates select="."/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<wx:sub-section>
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<xsl:choose>
|
||||
<xsl:when test="$level = 0">
|
||||
<w:pStyle w:val="Title"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<w:pStyle w:val="Heading{$level}"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>
|
||||
<xsl:call-template name="output-node-text-as-text"/>
|
||||
</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<xsl:call-template name="output-note-text-as-bodytext"/>
|
||||
<!-- if the level is higher than maxlevel, or if the current node is
|
||||
marked with LastHeading, we start outputting normal paragraphs,
|
||||
else we loop back into the heading mode -->
|
||||
<xsl:choose>
|
||||
<xsl:when test="attribute/@NAME = 'LastHeading'">
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="$level < $maxlevel">
|
||||
<xsl:apply-templates select="node" mode="heading">
|
||||
<xsl:with-param name="level" select="$level + 1"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</wx:sub-section>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<!-- output each node as normal paragraph -->
|
||||
<xsl:template match="node">
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Normal"/>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>
|
||||
<xsl:call-template
|
||||
name="output-node-text-as-text"/>
|
||||
</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
<xsl:call-template name="output-note-text-as-bodytext"/>
|
||||
<xsl:apply-templates select="node"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-node-text-as-text">
|
||||
<xsl:choose>
|
||||
<xsl:when test="@TEXT">
|
||||
<xsl:value-of select="normalize-space(@TEXT)"/>
|
||||
</xsl:when>
|
||||
<xsl:when test="richcontent[@TYPE='NODE']">
|
||||
<xsl:value-of
|
||||
select="normalize-space(richcontent[@TYPE='NODE']/html/body)"/>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<xsl:text></xsl:text>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-note-text-as-bodytext">
|
||||
<xsl:if test="richcontent[@TYPE='NOTE']">
|
||||
<w:p>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="BodyText"/>
|
||||
</w:pPr>
|
||||
<w:r>
|
||||
<w:t>
|
||||
<xsl:value-of
|
||||
select="string(richcontent[@TYPE='NOTE']/html/body)"/>
|
||||
</w:t>
|
||||
</w:r>
|
||||
</w:p>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<!-- The following is a very long template just to output the necessary styles,
|
||||
this is the part you should edit if you'd like different default styles.
|
||||
-->
|
||||
|
||||
<xsl:template name="output-styles">
|
||||
<w:styles>
|
||||
<w:versionOfBuiltInStylenames w:val="4"/>
|
||||
<w:latentStyles w:defLockedState="off" w:latentStyleCount="156"/>
|
||||
|
||||
<w:style w:type="paragraph" w:default="on" w:styleId="Normal">
|
||||
<w:name w:val="Normal"/>
|
||||
<w:rsid w:val="00831C9D"/>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
<w:sz w:val="24"/>
|
||||
<w:sz-cs w:val="24"/>
|
||||
<w:lang w:val="EN-US" w:fareast="EN-US" w:bidi="AR-SA"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading1">
|
||||
<w:name w:val="heading 1"/>
|
||||
<wx:uiName wx:val="Heading 1"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading1"/>
|
||||
<w:keepNext/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="0"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
|
||||
<wx:font wx:val="Arial"/>
|
||||
<w:b/>
|
||||
<w:b-cs/>
|
||||
<w:kern w:val="32"/>
|
||||
<w:sz w:val="32"/>
|
||||
<w:sz-cs w:val="32"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading2">
|
||||
<w:name w:val="heading 2"/>
|
||||
<wx:uiName wx:val="Heading 2"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading2"/>
|
||||
<w:keepNext/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="1"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
|
||||
<wx:font wx:val="Arial"/>
|
||||
<w:b/>
|
||||
<w:b-cs/>
|
||||
<w:i/>
|
||||
<w:i-cs/>
|
||||
<w:sz w:val="28"/>
|
||||
<w:sz-cs w:val="28"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading3">
|
||||
<w:name w:val="heading 3"/>
|
||||
<wx:uiName wx:val="Heading 3"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading3"/>
|
||||
<w:keepNext/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="2"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
|
||||
<wx:font wx:val="Arial"/>
|
||||
<w:b/>
|
||||
<w:b-cs/>
|
||||
<w:sz w:val="26"/>
|
||||
<w:sz-cs w:val="26"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading4">
|
||||
<w:name w:val="heading 4"/>
|
||||
<wx:uiName wx:val="Heading 4"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading4"/>
|
||||
<w:keepNext/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="3"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
<w:b/>
|
||||
<w:b-cs/>
|
||||
<w:sz w:val="28"/>
|
||||
<w:sz-cs w:val="28"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading5">
|
||||
<w:name w:val="heading 5"/>
|
||||
<wx:uiName wx:val="Heading 5"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading5"/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="4"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
<w:b/>
|
||||
<w:b-cs/>
|
||||
<w:i/>
|
||||
<w:i-cs/>
|
||||
<w:sz w:val="26"/>
|
||||
<w:sz-cs w:val="26"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading6">
|
||||
<w:name w:val="heading 6"/>
|
||||
<wx:uiName wx:val="Heading 6"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading6"/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="5"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
<w:b/>
|
||||
<w:b-cs/>
|
||||
<w:sz w:val="22"/>
|
||||
<w:sz-cs w:val="22"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading7">
|
||||
<w:name w:val="heading 7"/>
|
||||
<wx:uiName wx:val="Heading 7"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading7"/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="6"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading8">
|
||||
<w:name w:val="heading 8"/>
|
||||
<wx:uiName wx:val="Heading 8"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading8"/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="7"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
<w:i/>
|
||||
<w:i-cs/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Heading9">
|
||||
<w:name w:val="heading 9"/>
|
||||
<wx:uiName wx:val="Heading 9"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:next w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Heading9"/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:outlineLvl w:val="8"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
|
||||
<wx:font wx:val="Arial"/>
|
||||
<w:sz w:val="22"/>
|
||||
<w:sz-cs w:val="22"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="character" w:default="on" w:styleId="DefaultParagraphFont">
|
||||
<w:name w:val="Default Paragraph Font"/>
|
||||
<w:semiHidden/>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="table" w:default="on" w:styleId="TableNormal">
|
||||
<w:name w:val="Normal Table"/>
|
||||
<wx:uiName wx:val="Table Normal"/>
|
||||
<w:semiHidden/>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
</w:rPr>
|
||||
<w:tblPr>
|
||||
<w:tblInd w:w="0" w:type="dxa"/>
|
||||
<w:tblCellMar>
|
||||
<w:top w:w="0" w:type="dxa"/>
|
||||
<w:left w:w="108" w:type="dxa"/>
|
||||
<w:bottom w:w="0" w:type="dxa"/>
|
||||
<w:right w:w="108" w:type="dxa"/>
|
||||
</w:tblCellMar>
|
||||
</w:tblPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="list" w:default="on" w:styleId="NoList">
|
||||
<w:name w:val="No List"/>
|
||||
<w:semiHidden/>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="Title">
|
||||
<w:name w:val="Title"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="Title"/>
|
||||
<w:spacing w:before="240" w:after="60"/>
|
||||
<w:jc w:val="center"/>
|
||||
<w:outlineLvl w:val="0"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<w:rFonts w:ascii="Arial" w:h-ansi="Arial" w:cs="Arial"/>
|
||||
<wx:font wx:val="Arial"/>
|
||||
<w:b/>
|
||||
<w:b-cs/>
|
||||
<w:kern w:val="28"/>
|
||||
<w:sz w:val="32"/>
|
||||
<w:sz-cs w:val="32"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
<w:style w:type="paragraph" w:styleId="BodyText">
|
||||
<w:name w:val="Body Text"/>
|
||||
<w:basedOn w:val="Normal"/>
|
||||
<w:rsid w:val="00BA7540"/>
|
||||
<w:pPr>
|
||||
<w:pStyle w:val="BodyText"/>
|
||||
<w:spacing w:after="120"/>
|
||||
</w:pPr>
|
||||
<w:rPr>
|
||||
<wx:font wx:val="Times New Roman"/>
|
||||
</w:rPr>
|
||||
</w:style>
|
||||
|
||||
</w:styles>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,112 +0,0 @@
|
||||
<map version="0.9.0">
|
||||
<!-- To view this file, download free mind mapping software FreeMind from http://freemind.sourceforge.net -->
|
||||
<node CREATED="1216974513042" ID="ID_833600903" MODIFIED="1216991733257" TEXT="Example of map exportable to Word">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
The root node is exported as document title (with format "Title").
|
||||
</p>
|
||||
<p>
|
||||
Attributes of the root node are exported as document properties if they have the prefix "doc-" in their name. Acceptable names are Subject, Author, Manager, Keywords, Category, Company and Description.
|
||||
</p>
|
||||
<p>
|
||||
The attribute "header-maxlevel" is used to define the maximum of nodes until which "Heading N" styles are used. If the attribute is not defined, the default value is 4. The maximum possible is 9.
|
||||
</p>
|
||||
</body>
|
||||
</html></richcontent>
|
||||
<attribute_layout NAME_WIDTH="91" VALUE_WIDTH="91"/>
|
||||
<attribute NAME="doc-Subject" VALUE="TheSubject"/>
|
||||
<attribute NAME="doc-Author" VALUE="TheAuthor"/>
|
||||
<attribute NAME="doc-Manager" VALUE="TheManager"/>
|
||||
<attribute NAME="doc-Keywords" VALUE="TheKeywords"/>
|
||||
<attribute NAME="doc-Category" VALUE="TheCategory"/>
|
||||
<attribute NAME="doc-Company" VALUE="TheCompany"/>
|
||||
<attribute NAME="doc-Description" VALUE="TheDescription"/>
|
||||
<attribute NAME="header-maxlevel" VALUE="4"/>
|
||||
<node CREATED="1216974528086" ID="ID_1996762094" MODIFIED="1216974692827" POSITION="left" TEXT="Chapter 1">
|
||||
<node CREATED="1216974536680" ID="ID_418841879" MODIFIED="1216974708501" TEXT="Chapter 1.1">
|
||||
<node CREATED="1216974544352" ID="ID_1231871458" MODIFIED="1216991404490" TEXT="Chapter 1.1.1">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
This is a note belonging to Chapter 1.1.1, such notes are exported with style "Body Text" but any formatting,
|
||||
</p>
|
||||
<p>
|
||||
or even new lines are lost. That's sad but that's reality.
|
||||
</p>
|
||||
</body>
|
||||
</html></richcontent>
|
||||
<node CREATED="1216974561800" ID="ID_35441158" MODIFIED="1216974730363" TEXT="Chapter 1.1.1.1">
|
||||
<node CREATED="1216974620653" ID="ID_1657992058" MODIFIED="1216991329486" TEXT="Text wich is"/>
|
||||
<node CREATED="1216974660607" ID="ID_1076025767" MODIFIED="1216991352258" TEXT="deeper than the"/>
|
||||
<node CREATED="1216974664012" ID="ID_1612257345" MODIFIED="1216991345298" TEXT="header-maxlevel attribute"/>
|
||||
<node CREATED="1216974667197" ID="ID_1877504467" MODIFIED="1216991366458" TEXT="is exported with "Normal" style."/>
|
||||
</node>
|
||||
<node CREATED="1216974674739" ID="ID_843043724" MODIFIED="1217604631678" TEXT="This nodes will be exported as a normal paragraph">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
By marking a node with the attribute 'NoHeading' (the value is not important), you make sure that this chapter will be exported as normal paragraph, together with all nodes below.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<attribute_layout NAME_WIDTH="62" VALUE_WIDTH="91"/>
|
||||
<attribute NAME="NoHeading" VALUE=""/>
|
||||
<node CREATED="1217604758817" ID="ID_863632446" MODIFIED="1217604766680" TEXT="Like also this one"/>
|
||||
</node>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216974696283" ID="ID_1342553402" MODIFIED="1217604572992" TEXT="Chapter 1.2 - mark a header as last heading">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
By marking a node with the attribute 'LastHeading' (the value is not important), you make sure that this chapter will be exported as the last heading in the hierarchy, i.e. all nodes below the chapter will be exported as normal paragraphs.
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
</richcontent>
|
||||
<attribute_layout NAME_WIDTH="69" VALUE_WIDTH="91"/>
|
||||
<attribute NAME="LastHeading" VALUE=""/>
|
||||
<node CREATED="1217603132140" ID="ID_1323406791" MODIFIED="1217603515832" TEXT="this node becomes a normal paragraph
even though it's above the defaultlevel">
|
||||
<node CREATED="1217603804767" ID="ID_630190221" MODIFIED="1217603812619" TEXT="And this one as well"/>
|
||||
</node>
|
||||
<node CREATED="1217603814001" ID="ID_1067471434" MODIFIED="1217603819328" TEXT="And also this one"/>
|
||||
</node>
|
||||
</node>
|
||||
<node CREATED="1216991067197" ID="ID_334419387" MODIFIED="1216991070354" POSITION="left" TEXT="Chapter 2"/>
|
||||
<node CREATED="1216809914482" ID="ID_1308741003" MODIFIED="1216991809773" POSITION="right" TEXT="Chapter 3 - how to export a mindmap to MS Word ?">
|
||||
<node CREATED="1216809917636" ID="ID_199484608" MODIFIED="1216991907919" TEXT="Chapter 3.1 - create a map following the notes and hints expressed in this example map"/>
|
||||
<node CREATED="1216809921221" ID="ID_1681718272" MODIFIED="1216991918173" TEXT="Chapter 3.2 - export the map using the File -> Export -> Using XSLT... menu">
|
||||
<node CREATED="1216826868748" ID="ID_1660904657" MODIFIED="1216991964598" TEXT="Chapter 3.2.1 - select the mm2wordml_utf8.xsl XSL file from the accessories directory in the FreeMind base directory."/>
|
||||
<node CREATED="1216826924521" ID="ID_1561412985" MODIFIED="1216991975934" TEXT="Chapter 3.2.2 - export to a file with a name ending in .doc (or .xml)"/>
|
||||
</node>
|
||||
<node CREATED="1216826940554" ID="ID_769680777" MODIFIED="1216991935017" TEXT="Chapter 3.3 - just double click in the Explorer on the newly created file and Microsoft Office Word should open the file properly.">
|
||||
<richcontent TYPE="NOTE"><html>
|
||||
<head>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
You need a version of MS Project supporting XML, I think MS Project 2003 and later.
|
||||
</p>
|
||||
</body>
|
||||
</html></richcontent>
|
||||
</node>
|
||||
<node CREATED="1216827072099" ID="ID_785390572" MODIFIED="1216991949417" TEXT="Chapter 3.4 - you're done, enjoy!"/>
|
||||
</node>
|
||||
<node CREATED="1216991668227" ID="ID_1657343694" MODIFIED="1216991670530" POSITION="right" TEXT="Chapter 4"/>
|
||||
</node>
|
||||
</map>
|
||||
@@ -1,54 +0,0 @@
|
||||
<?xml version="1.0" standalone="no" ?>
|
||||
<!--
|
||||
: mm2xbel.xsl
|
||||
: XSL stylesheet to convert from Mindmap to XBEL
|
||||
:
|
||||
: This code released under the GPL.
|
||||
: (http://www.gnu.org/copyleft/gpl.html)
|
||||
:
|
||||
: William McVey <wam@cisco.com>
|
||||
: September 11, 2003
|
||||
:
|
||||
: $Id: mm2xbel.xsl,v 1.1.34.1 2007/04/20 20:31:31 christianfoltin Exp $
|
||||
:
|
||||
-->
|
||||
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
|
||||
|
||||
<xsl:strip-space elements="*" />
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8" />
|
||||
|
||||
<xsl:template match="/map/node">
|
||||
<xbel version="1.0" folded="no">
|
||||
<title><xsl:value-of select="@TEXT" /></title>
|
||||
<xsl:for-each select="node">
|
||||
<xsl:call-template name="node"/>
|
||||
</xsl:for-each>
|
||||
</xbel>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="node">
|
||||
<xsl:if test="string-length(@LINK) > 0">
|
||||
<bookmark>
|
||||
<xsl:attribute name="href">
|
||||
<xsl:value-of select="@LINK" />
|
||||
</xsl:attribute>
|
||||
<title>
|
||||
<xsl:value-of select="@TEXT" />
|
||||
</title>
|
||||
</bookmark>
|
||||
</xsl:if>
|
||||
<xsl:if test="string-length(@LINK) = 0">
|
||||
<folder>
|
||||
<title>
|
||||
<xsl:value-of select="@TEXT" />
|
||||
</title>
|
||||
<xsl:for-each select="node">
|
||||
<xsl:call-template name="node"/>
|
||||
</xsl:for-each>
|
||||
</folder>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
@@ -1,116 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
(c) by Naoki Nose, Eric Lavarde 2006-2008
|
||||
This code is licensed under the GPLv2 or later.
|
||||
(http://www.gnu.org/copyleft/gpl.html)
|
||||
Stylesheet to transform a FreeMind map into an Excel sheet, use menu point
|
||||
File -> Export -> Using XSLT... to choose this XSL file, and name the
|
||||
ExportFile Something.xls or Something.xml.
|
||||
2006-12-10: added support for notes and attributes (EWL)
|
||||
2008-10-23: corrected issue with ss namespace not being output (EWL)
|
||||
-->
|
||||
<xsl:stylesheet version="1.0"
|
||||
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
||||
xmlns="urn:schemas-microsoft-com:office:spreadsheet"
|
||||
xmlns:o="urn:schemas-microsoft-com:office:office"
|
||||
xmlns:x="urn:schemas-microsoft-com:office:excel"
|
||||
xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"
|
||||
xmlns:duss="urn:schemas-microsoft-com:office:dummyspreadsheet">
|
||||
<xsl:output method="xml" indent="yes" encoding="UTF-8" standalone="yes"/>
|
||||
<!-- the duss namespace alias is required in order to be able to output
|
||||
ss:Data properly, Excel ignores the extraneous dummy namespace. -->
|
||||
<xsl:namespace-alias stylesheet-prefix="duss" result-prefix="ss"/>
|
||||
|
||||
<xsl:template match="/map">
|
||||
<xsl:processing-instruction name="mso-application"> progid="Excel.Sheet"</xsl:processing-instruction>
|
||||
<Workbook>
|
||||
<Styles>
|
||||
<Style ss:ID="s16" ss:Name="attribute_cell">
|
||||
<Borders>
|
||||
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
</Borders>
|
||||
</Style>
|
||||
<Style ss:ID="s17" ss:Name="attribute_header">
|
||||
<Borders>
|
||||
<Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
<Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
<Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
<Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="1"/>
|
||||
</Borders>
|
||||
<Font ss:Bold="1"/>
|
||||
</Style>
|
||||
</Styles>
|
||||
<!-- we could probably put something more intelligent as worksheet name,
|
||||
but it would require name mangling to avoid unallowed characters -->
|
||||
<Worksheet ss:Name="FreeMind Sheet">
|
||||
<Table>
|
||||
<xsl:apply-templates select="node">
|
||||
<xsl:with-param name="index" select="1" />
|
||||
</xsl:apply-templates>
|
||||
</Table>
|
||||
</Worksheet>
|
||||
</Workbook>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="node">
|
||||
<xsl:param name="index" />
|
||||
<Row><Cell ss:Index="{$index}">
|
||||
<xsl:call-template name="output-node-text-as-data" />
|
||||
</Cell>
|
||||
<xsl:if test="attribute">
|
||||
<Cell ss:StyleID="s17">
|
||||
<Data ss:Type="String">Names</Data></Cell>
|
||||
<Cell ss:StyleID="s17">
|
||||
<Data ss:Type="String">Values</Data></Cell>
|
||||
</xsl:if>
|
||||
</Row>
|
||||
<xsl:apply-templates select="attribute">
|
||||
<xsl:with-param name="index" select="$index + 1" />
|
||||
</xsl:apply-templates>
|
||||
<xsl:apply-templates select="node">
|
||||
<xsl:with-param name="index" select="$index + 1" />
|
||||
</xsl:apply-templates>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="attribute">
|
||||
<xsl:param name="index" />
|
||||
<Row><Cell ss:Index="{$index}" ss:StyleID="s16">
|
||||
<Data ss:Type="String"><xsl:value-of select="@NAME" /></Data>
|
||||
</Cell>
|
||||
<Cell ss:StyleID="s16">
|
||||
<Data ss:Type="String"><xsl:value-of select="@VALUE" /></Data>
|
||||
</Cell>
|
||||
</Row>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="output-node-text-as-data">
|
||||
<xsl:choose>
|
||||
<xsl:when test="richcontent[@TYPE='NODE']">
|
||||
<!-- see comments about rich text and HTML format below -->
|
||||
<duss:Data ss:Type="String" xmlns="http://www.w3.org/TR/REC-html40"><xsl:copy-of select="richcontent[@TYPE='NODE']/html/body/*" /></duss:Data>
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<Data ss:Type="String"><xsl:value-of select="@TEXT"/></Data>
|
||||
<!-- xsl:value-of select="normalize-space(@TEXT)" / -->
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
<xsl:call-template name="output-note-text-as-comment" />
|
||||
</xsl:template>
|
||||
|
||||
<!-- export of rich text in HTML format should work, but formatting is lost
|
||||
because Excel understands only HTML tags in capitals, whereas
|
||||
FreeMind exports in small caps. This can probably be solved but would
|
||||
require some more tweaking -->
|
||||
<xsl:template name="output-note-text-as-comment">
|
||||
<xsl:if test="richcontent[@TYPE='NOTE']">
|
||||
<Comment><duss:Data xmlns="http://www.w3.org/TR/REC-html40"><xsl:copy-of
|
||||
select="richcontent[@TYPE='NOTE']/html/body/*" /></duss:Data></Comment>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version='1.0' encoding='ISO-8859-1'?>
|
||||
<xsl:stylesheet version='1.0' xmlns:xsl='http://www.w3.org/1999/XSL/Transform' ><xsl:output media-type='text/xml' /><xsl:template match='/' ><map version='0.7.1' ><xsl:apply-templates select='opml' /></map>
|
||||
</xsl:template><xsl:template match='opml' ><xsl:apply-templates select='body' /></xsl:template><xsl:template match='body' ><node><xsl:attribute name='COLOR' >#006633</xsl:attribute><xsl:attribute name='TEXT' ><xsl:value-of select='//title' /></xsl:attribute><xsl:attribute name='FOLDED' >true</xsl:attribute><font Name='SansSerif' SIZE='18' /><xsl:apply-templates select='outline' /></node>
|
||||
</xsl:template><xsl:template match='outline' ><xsl:choose><xsl:when test='count(child::*)!=0' ><node><xsl:attribute name='COLOR' >#006633</xsl:attribute><xsl:attribute name='TEXT' ><xsl:value-of select='@text' /></xsl:attribute><xsl:attribute name='FOLDED' >true</xsl:attribute><font Name='SansSerif' SIZE='18' /><xsl:apply-templates select='outline' /></node>
|
||||
</xsl:when><xsl:otherwise><xsl:choose><xsl:when test='@type='link'' ><node><xsl:attribute name='COLOR' >#006633</xsl:attribute><xsl:attribute name='TEXT' ><xsl:value-of select='@text' /></xsl:attribute><xsl:attribute name='LINK' ><xsl:choose><xsl:when test='contains(@url,'.opml') or contains(@url,'.OPML')' ><xsl:value-of select='concat(@url,'.mm')' /></xsl:when><xsl:otherwise><xsl:value-of select='@url' /></xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:attribute><font Name='SansSerif' SIZE='16' /><xsl:apply-templates select='outline' /></node>
|
||||
</xsl:when><xsl:when test='@type='img'' ><node><xsl:attribute name='TEXT' ><xsl:value-of select='concat('<html><img src="',@url,'">')' /></xsl:attribute><font Name='SansSerif' SIZE='16' /><xsl:apply-templates select='outline' /></node>
|
||||
</xsl:when><xsl:otherwise><node><xsl:attribute name='TEXT' ><xsl:value-of select='@text' /></xsl:attribute><font Name='SansSerif' SIZE='16' BOLD='true' /><xsl:apply-templates select='outline' /></node>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
||||
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="com.wisemapping.model.AccessAuditory" table="ACCESS_AUDITORY">
|
||||
<id name="id">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
<property name="loginDate" column="login_Date"/>
|
||||
<many-to-one name="user"
|
||||
column="user_id"
|
||||
not-null="true"
|
||||
class="com.wisemapping.model.User"
|
||||
/>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
@@ -1,34 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="com.wisemapping.model.Collaboration" table="COLLABORATION">
|
||||
<id name="id">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
|
||||
<property name="roleId" column="role_id" unique="true" not-null="true"/>
|
||||
|
||||
<!-- Read-only association property -->
|
||||
<many-to-one name="mindMap"
|
||||
column="mindmap_id"
|
||||
not-null="true"
|
||||
class="com.wisemapping.model.Mindmap"
|
||||
/>
|
||||
|
||||
<many-to-one name="collaborator"
|
||||
column="colaborator_id"
|
||||
not-null="true"
|
||||
class="com.wisemapping.model.Collaborator"
|
||||
/>
|
||||
|
||||
|
||||
<many-to-one name="collaborationProperties" class="com.wisemapping.model.CollaborationProperties"
|
||||
column="properties_id" not-null="false" cascade="all" unique="true"/>
|
||||
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
@@ -1,16 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="com.wisemapping.model.CollaborationProperties" table="COLLABORATION_PROPERTIES">
|
||||
<id name="id">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
<property name="mindmapProperties" column="mindmap_properties" unique="false" not-null="false"/>
|
||||
<property name="starred" column="starred" unique="false" not-null="true"/>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
@@ -1,41 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="com.wisemapping.model.Collaborator" table="COLLABORATOR">
|
||||
<id name="id">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
<property name="email"/>
|
||||
<property name="creationDate" column="creation_date"/>
|
||||
|
||||
<set name="collaborations"
|
||||
cascade="all, delete-orphan"
|
||||
inverse="true">
|
||||
<key column="colaborator_id" not-null="true"/>
|
||||
<one-to-many class="com.wisemapping.model.Collaboration"/>
|
||||
</set>
|
||||
|
||||
<joined-subclass name="com.wisemapping.model.User" table="USER">
|
||||
<key column="colaborator_id"/>
|
||||
<property name="firstname"/>
|
||||
<property name="lastname"/>
|
||||
<property name="password"/>
|
||||
<property name="activationDate" column="activation_date"/>
|
||||
<property name="activationCode" column="activation_code"/>
|
||||
<property name="allowSendEmail" column="allow_send_email"/>
|
||||
<property name="autheticationTypeCode" column="authentication_type"/>
|
||||
<property name="authenticatorUri" column="authenticator_uri"/>
|
||||
|
||||
<property name="locale"/>
|
||||
<set name="tags" table="TAG">
|
||||
<key column="user_id"/>
|
||||
<element column="name" type="string"/>
|
||||
</set>
|
||||
</joined-subclass>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="com.wisemapping.model.Label" table="LABEL">
|
||||
<id name="id">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
<property name="title"/>
|
||||
<property name="color"/>
|
||||
<property name="iconName"/>
|
||||
<many-to-one name="parent" column="parent_label_id" not-null="false"/>
|
||||
<many-to-one name="creator" column="creator_id" unique="true" not-null="false" lazy="proxy"/>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
@@ -1,19 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="com.wisemapping.model.MindMapHistory" table="MINDMAP_HISTORY">
|
||||
<id name="id">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
|
||||
<property name="mindmapId" column="mindmap_id"/>
|
||||
<property name="zippedXml" column="xml" lazy="true"/>
|
||||
<property name="creationTime" column="creation_date"/>
|
||||
<many-to-one name="editor" column="editor_id" unique="false" not-null="false" lazy="proxy"/>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
@@ -1,36 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping>
|
||||
|
||||
<class name="com.wisemapping.model.Mindmap" table="MINDMAP">
|
||||
<id name="id">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
<property name="title"/>
|
||||
<property name="public"/>
|
||||
<property name="description"/>
|
||||
<property name="zippedXml" column="XML" lazy="true"/>
|
||||
<property name="lastModificationTime" column="edition_date"/>
|
||||
<property name="creationTime" column="creation_date"/>
|
||||
<property name="tags" column="tags"/>
|
||||
<many-to-one name="creator" column="creator_id" unique="true" not-null="false" lazy="proxy"/>
|
||||
<many-to-one name="lastEditor" column="last_editor_id" unique="false" not-null="true" lazy="proxy"/>
|
||||
|
||||
<set name="collaborations"
|
||||
cascade="all,delete-orphan,save-update"
|
||||
inverse="true">
|
||||
<key column="mindmap_id" not-null="true"/>
|
||||
<one-to-many class="com.wisemapping.model.Collaboration"/>
|
||||
</set>
|
||||
|
||||
<set name = "labels"
|
||||
table="R_LABEL_MINDMAP" order-by="label_id" fetch="select" cascade="none">
|
||||
<key column="mindmap_id" not-null="true"/>
|
||||
<many-to-many column="label_id" class="com.wisemapping.model.Label"/>
|
||||
</set>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
||||
11
wise-webapp/src/main/resources/ehcache.xml
Normal file
11
wise-webapp/src/main/resources/ehcache.xml
Normal file
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE ehcache>
|
||||
<ehcache>
|
||||
<diskStore path="java.io.tmpdir"/>
|
||||
<cache name="com.wisemapping.model.Collaborator"
|
||||
maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="600"
|
||||
timeToLiveSeconds="3600" overflowToDisk="false"/>
|
||||
<cache name="com.wisemapping.model.User"
|
||||
maxElementsInMemory="10000" eternal="false" timeToIdleSeconds="600"
|
||||
timeToLiveSeconds="3600" overflowToDisk="false"/>
|
||||
</ehcache>
|
||||
@@ -54,6 +54,8 @@ RESET_PASSWORD_INVALID_EMAIL=The email provided is not a valid user account. Ple
|
||||
TRY_WELCOME=This edition space showcases some of the mindmap editor capabilities !.
|
||||
TRY_WELCOME_DESC=Sign Up to start creating, sharing and publishing unlimited number of mindmaps for free.
|
||||
|
||||
# To review
|
||||
UNEXPECTED_ERROR_DETAILS=Unexpected error processing request.
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user