|
DITA Storm
browser-based DITA XML Editor
by Inmedius Inc.
|
||
|
Compiling XML Structure Definition and XSL
Description:
There are three input files that define presentation and functionality of XML within the editor:
To optimize performance and improve user experience, XSL templates and XML structure definition file (model.xml) need to be compiled into corresponded JavaScript resource files.
Output of the compilation process should be placed into editor 'config' directory replacing existing files. After that they could be consumed by the editor:
Compilation process is simple and involves execution of command line script written in Java. Here is the sample usage of the script: compile -model model.xml -xsl my_style.xslIf you would like to compile original model.xml and simple.xsl provided with the editor: compile -model ../DITAStorm/config/model.xml \
-xsl ../DITAStorm/config/simple.xsl \
-modeljs ../DITAStorm/config/model.js \
-xsljs ../DITAStorm/config/simple.xsl.js
Provided command will replace two files: model.js and simple.xsl.js in the original DITAStorm configuration directory.
Note: If for some reason compilation script can not find java executable automatically, please set JAVA_HOME environment variable to point to the appropriate location.
|
|
|
Copyright © 2007
Inmedius Inc. |
||