Creating HTML documents
The templates for generating HTML provided by ODE might be considered as example for HTML generation, which could be replaced bay any other kind of OSI functions. Thus, starting HTML generation is nothing more than calling an OSI template. Since HTML templates can be called directly with a (selected) property handle, instance identifier need not to be passed.
Since HTML documents usually consist of more than one file, instead of a document path a kind of document root is required. When generating ODE HTML documents ( VOID ::HTMLProvideDocFolder() ), the document folder has to be set in option variable Options.Documentation.DocumentTarget .
The example below shows a simple fragment for calling
bool MyContext::fragment() {
Property ph = line().property();
/* set option variables to be passed to template depend on options referenced in the template
if ( ph.positioned() )
Option("ItemLoid") = ph.instanceLoid();
*/
// html_template_name = GetHTMLTemplateName(); // provide HTML template name
ph.executeExpression(html_template_name);
}