Meditor XML-Export

Aus Physik
Zur Navigation springen Zur Suche springen

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 ???
      •  ???
  • 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) {}
    ...
}