.cshlp
The project file defines the location of all resources used by the project and the target help file name.
A CS Help project file starts with a XML prologue. The prologue enables the project file to be viewed in an XML enabled browser.
The prologue is defined as follows:
<?xml version="1.0"?>
indicates the XML version used.
<?xml:stylesheet href="/cshlpcmp/xsl/CSHproj.xsl" title="CS
Help project" type="text/xsl"?>
specifies the location of the XSL style sheet used to allow viewing of the proofing XML files in a browser.
<!DOCTYPE cshproj SYSTEM
"/epoc32/tools/cshlpcmp/dtd/CSHproj.dtd">
defines the document type and specifies the location of the DTD used to validate the source XML.
CS Help XML documents are preceded by an XML prologue followed by the
content of the document. The start of the project file is indicated by a
cshproj
tag. The cshproj
tag contains
helpfileUID
, directories
and files
tags.
The body of a project file is defined by;
<cshproj>
<helpfileUID>the uid of the generated help file</helpfileUID>
<directories>
directories used by the project
</directories>
<files>
The files that are used in the project
</files>
</cshproj>
The helpfileuid
tag contains the UID of the help file to
be generated. This is used so that Symbian OS can merge help files even if they
have the same name.
<helpfileUID>UID</helpfileUID>
This UID is not the same as the UID used in the source RTF file—which belongs to the application
|
The directories
tag gives the directories that are used
by the CS Help tool chain.
<directories>
<input>input-directory</input>
<output>output-directory</output>
<graphics>base-graphics-directory</graphics>
<working>working-directory</working>
</directories>
If any file name or directory is specified as a relative path,
such as ..\graphics\
, or \help\agenda\
, then it is
resolved against the drive and directory which was current when the
cshlpcmp
command was issued.
All directories must be specified with a trailing
\
.
|
The files
tag contains the file names of the files that
are used and created by the tool chain.
<files>
<source>
<file>source-file1.rtf</file>
<file>source-file2.rtf</file>
</source>
<destination>output-file.hlp</destination>
<customization>customisation-file.xml</customization>
</files>
|
The source tag may contain multiple file tags which correspond to the source .rtf files to process.
If any file name or directory is specified as a relative path,
such as ..\graphics\
, or \help\agenda\
, then it is
resolved against the drive and directory which was current when the CS Help
command was issued.
Source files must have .rtf
extension.
Customisation file— .xml, Command line syntax— CS Help compiler