1.1 --- a/styles/mmap2vym.xsl Thu Feb 23 16:39:16 2006 +0000
1.2 +++ b/styles/mmap2vym.xsl Wed Apr 11 09:21:15 2007 +0000
1.3 @@ -29,7 +29,8 @@
1.4 <xsl:template match="/">
1.5 <xsl:element name="vymmap">
1.6 <!-- default settings: -->
1.7 - <xsl:attribute name="comment">Generated with mmap2vym (V0.1.2) - MindManager to vym converter. More infos: www.clemens-kraus.de</xsl:attribute>
1.8 + <xsl:attribute name="comment">Converted from MindManager to vym
1.9 + using mmap2vym.xsl</xsl:attribute>
1.10
1.11 <xsl:variable name="author" select="concat(/ap:Map/ap:DocumentGroup/ap:Author/@UserName, ' ', /ap:Map/ap:DocumentGroup/ap:Author/@UserEmail)" />
1.12 <xsl:if test="$author">
1.13 @@ -38,7 +39,6 @@
1.14
1.15 <xsl:element name="mapcenter">
1.16 <!-- recurse to map title node ... -->
1.17 - <xsl:apply-templates select="ap:Map/ap:OneTopic/ap:Topic/ap:Text"/>
1.18 <xsl:apply-templates select="ap:Map/ap:OneTopic/ap:Topic/ap:SubTopics" />
1.19 </xsl:element>
1.20 </xsl:element>
1.21 @@ -54,16 +54,16 @@
1.22 <xsl:template match="ap:Topic">
1.23 <xsl:element name="branch">
1.24 <xsl:call-template name="position" />
1.25 - <!-- =============================== hyperlink ================================ -->
1.26 + <!-- =============================== hyperlink ================================
1.27 <xsl:variable name="url" select="ap:Hyperlink" />
1.28 <xsl:if test="$url">
1.29 <xsl:attribute name="url"><xsl:value-of select="ap:Hyperlink/@Url"/></xsl:attribute>
1.30 </xsl:if>
1.31 -
1.32 <xsl:variable name="rect" select="ap:SubTopicShape/@SubTopicShape" />
1.33 <xsl:if test="contains($rect, 'Rectangle')">
1.34 <xsl:attribute name="frameType">Rectangle</xsl:attribute>
1.35 </xsl:if>
1.36 + -->
1.37 <xsl:apply-templates/>
1.38 </xsl:element>
1.39 </xsl:template>
1.40 @@ -83,30 +83,7 @@
1.41 </xsl:if>
1.42 </xsl:template>
1.43
1.44 -
1.45 -
1.46
1.47 - <!-- ================================= getfn ================================== -->
1.48 - <!-- get the filename (without the path) -->
1.49 -
1.50 - <xsl:template name="getfn">
1.51 - <xsl:param name="txt" select="." />
1.52 - <xsl:choose>
1.53 - <xsl:when test="contains($txt, '/')" >
1.54 - <xsl:variable name="right" select="substring-after($txt, '/')" />
1.55 - <xsl:if test="string-length($right)>1" >
1.56 - <xsl:call-template name="getfn" >
1.57 - <xsl:with-param name="txt" select="$right" />
1.58 - </xsl:call-template>
1.59 - </xsl:if>
1.60 - </xsl:when>
1.61 - <xsl:otherwise>
1.62 - <xsl:value-of select="$txt" />
1.63 - </xsl:otherwise>
1.64 - </xsl:choose>
1.65 -
1.66 - </xsl:template>
1.67 -
1.68 <!-- =============================== Icons ================================ -->
1.69 <xsl:template match="ap:Icon">
1.70 <xsl:element name="standardFlag">
1.71 @@ -122,18 +99,6 @@
1.72 </xsl:template>
1.73
1.74
1.75 - <!-- =============================== color ================================ -->
1.76 - <xsl:template match="color">
1.77 - <xsl:attribute name="textColor">
1.78 - <!-- switch from BBGGRR to #RRGGBB representation -->
1.79 - <xsl:text>#</xsl:text>
1.80 - <xsl:value-of select="substring( ., 5, 2 )"/>
1.81 - <xsl:value-of select="substring( ., 3, 2 )"/>
1.82 - <xsl:value-of select="substring( ., 1, 2 )"/>
1.83 - </xsl:attribute>
1.84 - </xsl:template>
1.85 -
1.86 -
1.87 </xsl:stylesheet>
1.88
1.89