styles/mmap2vym.xsl
changeset 218 160459d924a1
parent 217 375be2baa976
child 219 a860efcaac4c
     1.1 --- a/styles/mmap2vym.xsl	Tue Feb 21 16:18:23 2006 +0000
     1.2 +++ b/styles/mmap2vym.xsl	Thu Feb 23 08:37:39 2006 +0000
     1.3 @@ -1,10 +1,7 @@
     1.4 -<?xml version="1.0" encoding="iso-8859-1"?>
     1.5 +<?xml version="1.0" encoding="UTF-8"?>
     1.6  
     1.7  <!--
     1.8  	Document   : mmap2vym.xsl
     1.9 -	Created on : 20051120
    1.10 -	Modified   : 20051128
    1.11 -	Version    : 0.1.2
    1.12  	Author     : Clemens Kraus (http://www.clemens-kraus.de)
    1.13  	
    1.14  	Description: transforms exported MindManager-files (version x5/6) into vym-format.
    1.15 @@ -38,12 +35,6 @@
    1.16     	<xsl:element name="vymmap">
    1.17  			<!-- default settings: -->
    1.18  			<xsl:attribute name="comment">Generated with mmap2vym (V0.1.2) - MindManager to vym converter. More infos: www.clemens-kraus.de</xsl:attribute>
    1.19 -			<xsl:attribute name="backgroundColor">#ffffff</xsl:attribute>
    1.20 -			<xsl:attribute name="linkStyle">StyleLine</xsl:attribute>
    1.21 -			<xsl:attribute name="linkColor">#00007f</xsl:attribute>
    1.22 -			<xsl:attribute name="linkColorHint">HeadingColor</xsl:attribute>
    1.23 -			<xsl:attribute name="defXLinkColor">#e6e6e6</xsl:attribute>
    1.24 -			<xsl:attribute name="defXLinkWidth">1</xsl:attribute>
    1.25  
    1.26  			<xsl:variable name="author" select="concat(/ap:Map/ap:DocumentGroup/ap:Author/@UserName, ' ', /ap:Map/ap:DocumentGroup/ap:Author/@UserEmail)" />
    1.27  			<xsl:if test="$author">
    1.28 @@ -148,16 +139,16 @@
    1.29    <!-- =============================== position ================================ -->
    1.30    <!-- for position -->
    1.31    <xsl:template name="position">
    1.32 -	
    1.33 -    <xsl:attribute name="absPosX">
    1.34 -		<!-- if CX != "" -->
    1.35 -      <xsl:value-of select="floor( (ap:Offset/@CX - $minxCoord) * 0.8  + 10 )"/>
    1.36 -			<!--xsl:message>absPosX: <xsl:value-of select="floor( (ap:Offset/@CX - $minxCoord) * 0.8  + 10 )"/></xsl:message-->
    1.37 -    </xsl:attribute>
    1.38 -    <xsl:attribute name="absPosY">
    1.39 -      	<xsl:value-of select="floor( (- ap:Offset/@CY + $maxyCoord) * 0.6 + 10 )"/>
    1.40 -				<!-- xsl:message>absPosY: <xsl:value-of select="floor( (- ap:Offset/@CY + $maxyCoord) * 0.6 + 10)"/></xsl:message-->
    1.41 -    </xsl:attribute>
    1.42 +	<xsl:if test="ap:Offset/@CX!=''">
    1.43 +		<xsl:attribute name="relPosX">
    1.44 +		  <xsl:value-of select="ap:Offset/@CX *3"/>
    1.45 +		</xsl:attribute>
    1.46 +	</xsl:if>		
    1.47 +	<xsl:if test="ap:Offset/@CY!=''">
    1.48 +		<xsl:attribute name="relPosY">
    1.49 +			<xsl:value-of select="floor( ap:Offset/@CY *3 )"/>
    1.50 +		</xsl:attribute>
    1.51 +	</xsl:if>		
    1.52  		
    1.53    </xsl:template>
    1.54  
    1.55 @@ -259,6 +250,16 @@
    1.56  	  
    1.57    </xsl:template>
    1.58    
    1.59 +<!-- =============================== Icons ================================ -->
    1.60 +<xsl:template match="ap:Icon">
    1.61 +	<xsl:message>Icon found</xsl:message>
    1.62 +	<xsl:element name="standardFlag">
    1.63 +		<xsl:value-of select="@IconType"/>
    1.64 +	</xsl:element>
    1.65 +	<xsl:message>absPos: <xsl:value-of select="@IconType"/>
    1.66 +	</xsl:message>
    1.67 +</xsl:template>
    1.68 +	
    1.69  
    1.70    <!-- =============================== codes ================================ -->
    1.71    <xsl:template match="codes">
    1.72 @@ -287,9 +288,9 @@
    1.73  	  </xsl:choose>
    1.74  	  <!-- Fuer spaetere Erweiterung um eigene Codes: z.B. MindManager-Codes "code-9.png"
    1.75  	  <xsl:value-of select="concat( 'code-', current() )"/> -->
    1.76 -	</xsl:element>
    1.77 +</xsl:element>
    1.78  
    1.79 -  </xsl:template>
    1.80 +</xsl:template>
    1.81  
    1.82    
    1.83    <!-- =============================== color ================================ -->