Meditor XML-Export: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Osiris (Diskussion | Beiträge) |
Osiris (Diskussion | Beiträge) |
||
Zeile 24: | Zeile 24: | ||
** Link zum .m-File |
** Link zum .m-File |
||
** Zeilennummern ??? |
** Zeilennummern ??? |
||
+ | |||
+ | =Struktur= |
||
+ | |||
+ | ==Die Klasse <tt>XMLExporter</tt> |
||
+ | public class XMLExporter { |
||
+ | // Definitionen der XML-Tags |
||
+ | public static void main(String[] args) {} |
||
+ | public static void writeToFile(String output, String outputFilePath) |
||
+ | throws FileNotFoundException, UnsupportedEncodingException, IOException {} |
||
+ | public static String export(IDocument document, Properties properties) {} |
||
+ | ... |
||
+ | } |
Version vom 2. April 2006, 13:24 Uhr
Es soll möglich sein "von außen" dem MLTutor ein Matlab-File zu übergeben, woraufhin er dieses partitioniert und diese Information in einem XML-File speichert.
Für dieses File sind Transformationen für html und tex zu schreiben.
Was geht
- Aufruf von außen für ein File
- Export des aktuellen Files aus dem MLTutor heraus
- Konfiguration über XML-File
- Erzeugen eines XML-Files
enthält:- Partitionierung
- Den Originalcode
- Schema existiert
- Transformation in HTML
- XSL File
- php-Skript für serverseitige Transformation
Was fehlt / Ideen
- Im XML-Format:
- Tags für Metadaten
- Filename
- Autor ???
- ???
- Tags für Metadaten
- Im erzeugten HTML-File:
- Link zum .m-File
- Zeilennummern ???
Struktur
==Die Klasse XMLExporter
public class XMLExporter { // Definitionen der XML-Tags public static void main(String[] args) {} public static void writeToFile(String output, String outputFilePath) throws FileNotFoundException, UnsupportedEncodingException, IOException {} public static String export(IDocument document, Properties properties) {} ... }