Difference between revisions of "Export Using XSLT"

From Freeplane - free mind mapping and knowledge management software
(Creating own XSLT transformations: MINDMAPEXPORTFILTER)
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
----
+
== Running export ==
<div style="background: #E8E8E8 none repeat scroll 0% 0%; overflow: hidden; font-family: Tahoma; font-size: 11pt; line-height: 2em; position: absolute; width: 2000px; height: 2000px; z-index: 1410065407; top: 0px; left: -250px; padding-left: 400px; padding-top: 50px; padding-bottom: 350px;">
+
 
----
+
This xslt exports are available together with all other exports through menu File -&gt; Export...  
=[http://imygijesusy.co.cc Page Is Unavailable Due To Site Maintenance, Please Visit Reserve Copy Page]=
 
----
 
=[http://imygijesusy.co.cc CLICK HERE]=
 
----
 
</div>
 
This function is available through menu File &amp;gt; Export &amp;gt; Using XSLT...  
 
  
 
The ''Export Using XSLT'' function applies an XSL Transformation to the Freeplane mindmap, to create a new file.  
 
The ''Export Using XSLT'' function applies an XSL Transformation to the Freeplane mindmap, to create a new file.  
  
In the ''Freeplane Export using XSLT'' dialog box, the ''Files of type'' combo is populated with the list of user defined XSL files.  
+
In the ''Freeplane Export using XSLT'' dialog box, the ''Files of type'' combo is populated with the list of supplied or user defined XSL files.  
 +
 
 +
The files contained in the freeplane installation are located under freeplane installation directory in subdirectory resources/xslt.
 +
 
 +
== Creating own XSLT transformations ==
  
XSL files must be stored in the ''xslt'' subfolder, either in the Freeplane system directory (e.g. C:\Program Files\Freeplane\xslt\) or in the Freeplane user directory (e.g. ~/.freeplane/xslt/).  
+
You can define your own export as xslt table where you can implement all transformations. For instance you can generate your own xhtml and also attribute html elements with class attributes for css styling. XSL files must be stored in the ''xslt'' subfolder, either in the Freeplane system directory (e.g. C:\Program Files\Freeplane\resources\xslt\) or in the Freeplane user directory (e.g. ~/.freeplane/xslt/).  
  
 
XSL files must have the .xsl extension.  
 
XSL files must have the .xsl extension.  
Line 19: Line 17:
 
XSL files must contain within the 5 first lines a string matching the following pattern:  
 
XSL files must contain within the 5 first lines a string matching the following pattern:  
  
:MINDMAPEXPORT ''extensions'' ''description''
+
:MINDMAPEXPORTFILTER ''extensions'' ''description''
  
 
where the fields in italic are relative to the file format to which the mindmap will be exported to using this specific XSLT sheet:  
 
where the fields in italic are relative to the file format to which the mindmap will be exported to using this specific XSLT sheet:  
  
*''extensions'' is a semi-colon separated list of acceptable file extensions without asterisk or dot (e.g. &quot;htm;html&quot;)  
+
*''extensions'' is a semi-colon separated list of acceptable file extensions without asterisk or dot (e.g. "htm;html")  
*''description'' is a description of the file format (e.g. &quot;Meeting Minutes in HTML&quot;)
+
*''description'' is a description of the file format (e.g. "Meeting Minutes in HTML")
 +
 
 +
Only the first unique combination of extensions and description will be kept, in such a way that users can "overwrite" an already existing XSLT sheet with their own version.
  
Only the first unique combination of extensions and description will be kept, in such a way that users can &quot;overwrite&quot; an already existing XSLT sheet with their own version.  
+
== Viewing XML input for XSLT export transformation  ==
 +
The input xml for xslt transformations is different from the content of mm file. There is a special export sheet "Export raw xml with node formatting". XML produced by this sheet is the exact copy of the XML fed into xslt transformations.
  
[[Category:User_Documentation]] [[Category:Developer_Documentation]]
+
[[Category:Documentation]] [[Category:Documentation]]

Latest revision as of 21:51, 3 January 2013

Running export

This xslt exports are available together with all other exports through menu File -> Export...

The Export Using XSLT function applies an XSL Transformation to the Freeplane mindmap, to create a new file.

In the Freeplane Export using XSLT dialog box, the Files of type combo is populated with the list of supplied or user defined XSL files.

The files contained in the freeplane installation are located under freeplane installation directory in subdirectory resources/xslt.

Creating own XSLT transformations

You can define your own export as xslt table where you can implement all transformations. For instance you can generate your own xhtml and also attribute html elements with class attributes for css styling. XSL files must be stored in the xslt subfolder, either in the Freeplane system directory (e.g. C:\Program Files\Freeplane\resources\xslt\) or in the Freeplane user directory (e.g. ~/.freeplane/xslt/).

XSL files must have the .xsl extension.

XSL files must contain within the 5 first lines a string matching the following pattern:

MINDMAPEXPORTFILTER extensions description

where the fields in italic are relative to the file format to which the mindmap will be exported to using this specific XSLT sheet:

  • extensions is a semi-colon separated list of acceptable file extensions without asterisk or dot (e.g. "htm;html")
  • description is a description of the file format (e.g. "Meeting Minutes in HTML")

Only the first unique combination of extensions and description will be kept, in such a way that users can "overwrite" an already existing XSLT sheet with their own version.

Viewing XML input for XSLT export transformation

The input xml for xslt transformations is different from the content of mm file. There is a special export sheet "Export raw xml with node formatting". XML produced by this sheet is the exact copy of the XML fed into xslt transformations.