\n");
supported = enode ("system-elements").list_set_attribs ();
supported.sort ();
enode ("window.generating_files").attrib.visible = "true";
num_elements = supported.length;
current_element = 0;
for (element in supported) {
// The only erroneously set attribute will be the nodes name.
if (element == "name")
continue;
node = enode ("norender").new_child (element);
index.write ('| ' + element + ' | ' +
node.description + ' |
\n');
f = new File (output_dir + "/" + element + ".html");
if (!f.open ("w")) {
enode ("label.error_message").attrib.text = "Error opening " + element + ".html for writing: " +
System.strerror (System.errno);
enode ("window.generating_error").attrib.visible = "true";
enode ("window.generating_files").attrib.visible = "false";
return;
}
enode ("label.filename").attrib.text = element + ".html";
f.write ('| Tag: ' +
element + ' | ' + node.description + ' |
|
\n');
f.write ('| Attrib Name | \n');
f.write ('Type | \n');
f.write ('Possible Values | \n');
f.write ('Description |
\n');
try {
attributes = node.supported_attribs ();
attributes.sort ();
for (attrib in attributes) {
info = attribute_descriptions (node, attrib);
f.write ('| ' + attrib + ' | \n');
f.write ('' + info.value_type + ' | \n');
f.write ('' + info.value_desc + ' | \n');
f.write ('' + info.description + ' |
\n');
}
} catch (e) {}
f.write ('
\n\n');
f.close ();
node.destroy ();
enode ("progress.generating").attrib.value = current_element / num_elements * 100;
current_element++;
}
index.write ('