Help TOC > Instructions for DEX developers > Developing Capabilities | |
Developing Capabilities | Date: 2010/02/10 16:56:25 Revision: 1.11 |
The capability development process is shown in figure 1 below.
The process for building a capability is as follows.
Generate the capability XML files
Run the script:
dexlib/utils/dex/mk_capability.wsf
This will generate a set of xml files for the capability stored
in:
dexlib/data/capabilities/CAPNAME
where CAPNAME
is the name of the capability.
The directory dvlp
is used for storing issues
against the capability and development files such as VISIO files.
The directory images
is used for images that are
part of the capability.
capability.xml
is the file which the developer
should edit. It provides an XML skeleton for the capability that
must be filled out. The file contains XML comment in each
section explaining what the developer must document.
dex_index.xml
dexlib/utils/dex/mk_capability.wsf
the capability should be added to the file:
dexlib/dex_index.xml
so that it can be browsed to. It is recommended that the
capabilities are stored in the file in alphabetical order.
dexlib/dex_index.xml
updated, the capability should be
checked in to SourcForge. Make sure that you add all the capability
directories, such as images, sys, dvlp
otherwise
DEXlib will not work for others.
The XML generated by the
dexlib/utils/dex/mk_capability.wsf
includes a number of inline comments. These provide guidance on
the how to develop the content of the capability.
The DTDs also contain documentation of the available XML elements. See:
dexlib/dtd/dex/capability.dtd
dexlib/dtd/dex/dexdoc.ent
dexlib/dtd/dex/text.ent
When a capability is created using
dexlib/utils/dex/mk_capability.wsf
an XML skeleton is created in the capability.xml
file.
This should be edited according to the requirements of a
template. The XML includes includes a number of inline comments. These provide guidance on
the how to develop the content of the template.
As well as the inline comments, details of the template language are
provided at
Reading Templates
.
The DTDs also contain documentation of the available XML elements. See:
dexlib/dtd/dex/template.dtd
THIS IS AN OLDER TEXT FROM dex-devguide.xml THAT SHOULD BE MERGED WITH THE TEXT ABOVE.
How to establish a new capability