Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#182 Export to XHTML (clickable map image version) failed

open-fixed
nobody
None
5
2014-09-02
2005-09-07
msel
No

In version 0.8.0 the export to xhtml with linked
picture fails. The program don't create the html file,
only the folder with the pictures, icons etc. is created.
It works well with 0.8.0 RC 5

Discussion

  • msel
    msel
    2005-09-07

    • summary: Export to XHTML (with linked picture) failed --> Export to XHTML (clickable map image version) failed
     
  • msel
    msel
    2005-09-07

    Logged In: YES
    user_id=1340881

    I think there is an error in the file
    freemind2html.xsl.
    If you use the old version of this file (from 0.8.0 RC5) the
    export works well.

     
  • msel
    msel
    2005-09-07

    • status: open --> open-works-for-me
     
  • msel
    msel
    2005-09-07

    Logged In: YES
    user_id=1340881

    I've changed the code in the file freemind2html.xsl and now
    it works for me. I think there is something wrong in line
    245 to 256 (the comment! <!--)

    Original file (line numbers 245 to 256)
    <!-- <xsl:when test="contains($text, $search)">
    <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-before($text, $search)"/></xsl:with-param>
    </xsl:call-template>
    <br/>
    <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-after($text, $search)"/></xsl:with-param>
    </xsl:call-template>
    </xsl:when>-->
    <xsl:otherwise><!--
    --><xsl:value-of select="$text"/><!--
    --></xsl:otherwise>

    Changes made by me line numbers 245 - 256:
    <xsl:when test="contains($text, $search)">
    <!-- <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-before($text, $search)"/></xsl:with-param>
    </xsl:call-template>
    <br/>
    <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-after($text, $search)"/></xsl:with-param>
    </xsl:call-template> -->
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$text"/>
    </xsl:otherwise>

     
  • Logged In: YES
    user_id=885594

    Hi,

    please start freemind.bat and tell me, what the command
    lines say.
    I get "out of memory" for big maps.

    Regards, Chris

     
  • msel
    msel
    2005-09-07

    Logged In: YES
    user_id=1340881

    Well I started freemind with the .bat file without any
    problem. But the map which I have exported was not really
    big (only 2 kb). I have also try it with the mindmap
    freemind.mm which is in the program folder and 74 kb big.
    But no problem!

    OS: Windows XP SP 2, Browser: Firefox, Java Runtime 1.5.04

    As I said in my last post I have fixed the export by
    changing the file freemind2html.xsl.

    Greetings, Maria!

     
  • Logged In: YES
    user_id=885594

    Hi Maria,

    sorry, I don't understand. I can export freemind.mm without
    problem and without changing any xsl. Can you please try this?
    I can't imagine, that changing a comment in an xsl should
    improve something. Can you prove that this solves your issue?

    Regards, Chris

     
  • msel
    msel
    2005-09-07

    Logged In: YES
    user_id=1340881

    I've exported a mindmap with Freemind 0.8.0.
    Format: As XHTML (Clickable map image version)
    I think the function export as xhtml uses the file
    freemind2html.xsl

    The export created only the files for the icons etc.
    For example:
    Test.html_files
    but no the file test.html itself, so the export don't work.
    If you use Freemind version 0.8.0 RC 5 it creates
    Test.html
    Test.html_files and it works.
    If you copy the old file "freemind2html.xsl" (under
    accessories) and you export a map then it creates also
    Test.html
    Test.html_files
    Then I've investigated the changes in the old file (0.8.0
    RC5) freemind2html.xsl and in the new file (0.8.0)
    freemind2html.xsl.
    When I looked at the code I which was changed I found the
    strange comment.
    If you look at the code:
    <!-- <xsl:when test="contains($text, $search)">
    <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-before($text, $search)"/></xsl:with-param>
    </xsl:call-template>
    <br/>
    <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-after($text, $search)"/></xsl:with-param>
    </xsl:call-template>
    </xsl:when>-->
    <xsl:otherwise><!--
    --><xsl:value-of select="$text"/><!--
    --></xsl:otherwise>
    Up to line <xsl:otherwise> is the first comment beginning
    with <!-->, but the line <xsl:otherwise> belongs to the
    first line when test=...

    Well I played a little bit with the code and then I've found
    the solution:
    <xsl:when test="contains($text, $search)">
    <!-- <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-before($text, $search)"/></xsl:with-param>
    </xsl:call-template>
    <br/>
    <xsl:call-template name="notesOut">
    <xsl:with-param name="text"><xsl:value-of
    select="substring-after($text, $search)"/></xsl:with-param>
    </xsl:call-template> -->
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$text"/>
    </xsl:otherwise>

    Now freemind exports the maps right. It creates a Test.html
    and a folder Test.html_files with the other objects.
    But without modification on the file freemind2html.xsl it
    does not work!

    Greetings, Maria!

     
  • Logged In: YES
    user_id=885594

    Hi Maria,

    please attach a map that can't be exported as I can't
    reproduce your problem.

    Thanks, Chris

     
  • msel
    msel
    2005-09-07

    File which can't be exported to xhtml clickable image map version

     
    Attachments
  • msel
    msel
    2005-09-07

    Logged In: YES
    user_id=1340881

    The file is uploaded (Test.mm).

     
  • Logged In: YES
    user_id=885594

    Dear Maria,

    this file exports without problems on my box (windows 2000,
    java 1.4.2_06).
    Can anybody else test the export with this map, please?
    Thanks, Chris

     
  • Logged In: YES
    user_id=885594

    Hi,

    the bug can be reproduced with java5. The corrected style
    sheet is attached.

    Thanks, Chris

     
  • Corrected stylesheet.

     
    Attachments
  • msel
    msel
    2005-09-08

    • status: open-works-for-me --> open-fixed
     
  • msel
    msel
    2005-09-08

    Logged In: YES
    user_id=1340881

    Thank you for the stylesheet. Now it works.