Description: This document describes how to create new or modify existing XML elements.
Pre-Requisite
Developer is installed and working.
Steps
Create new <element...> entry
Info: New elements along with all existing DITA XML elements are defined in DITAStorm/config/model.xml file. As part of this procedure you are able to identify child elements along with a list of available attributes. For more information on model.xml see corresponding section.
Register with other elements
Info: Identify other elements containing the new element and add it to the list of allowed elements in <group allows='...'>
Specify how the new element will be rendered.
Info: You have two options now:
First, you can rely on Developer to generate a default (outline-linke) representation of the new element. To exercise this option, use genericRenderer attribute of <element...>:
<element name='my' ... genericRenderer='true'>...
The Second option is to use the XSL rendering engine. To exercise this option, modify DITAStorm/config/simple.xsl. As an alternative, create your own XSL document and define rendering for your elements. For details about available XSL rendering options see corresponding section.
Compile your changes.
Info: To make changes to model.xml and XSL you need to compile them. Developer uses compilation to optimize the editor’s performance and download time.
Result
When all necessary steps are performed you will be able to insert the newly created element into XML, edit its attributes and store it along with the XML document.
With Developer’s XML customization options, entire new XML structures can be built. Here is an example of how it might look: Invoice Demo.