Metrics Report

Element and Attribute Count

Category Number Found
Element 94
Attributes 149
Total Metrics Value 243

Field Count Metric

Category Number Found
Number of Elements with Data Content (excluding Whitespace) 96017
Number of Attributes (excluding First Attribute and Namespace Declarations) 25526
Total Metrics Value 121543

Document Complexity Metric

Category Number Found
Element 94
Required Attributes 93
Optional Attributes 56
Required Children 19
Optional Children 72
Required as First Child 21
Total Metrics Value 355

Weighted Document Complexity Metric & Flow Impact

Category Weight Number Found
Element 2 94
Required Attributes 2 93
Optional Attributes 1 56
Required Children 1 19
Optional Children 1 72
Required as First Child 1 21
Total Metrics Value - 542

Element and Attribute Count

This is the simplest metric. It just sums the counts of unique elements and unique attribute names in the document.

Field Count Metric

The field count metric provides an approximate count of the total number of fields in a document. It sums all the elements and attributes in a document, excluding elements that are empty or which are containers. The first attribute of each element is also excluded, as this may contain linking or metadata (i.e. extending the element name) or an ID, rather than field information.

A Field Count metric is determined purely by sampling the documents or DTDs.

Document Complexity Metric

The Document Complexity Metric is an estimate of the complexity of a document, document set or DTD. It can be used for comparisons and project estimation. The higher the number, the greater the complexity.

A structure metric is determined purely by sampling the unvalidated documents or DTDs. The following information is used:

Elements
The total number of unique elements
Required Attributes
The total number of different attributes on any element that always occur
Optional Attributes
The total number of different attributes on any element that do not always occur. (For DTDS, this includes attributes with default or implied values. For documents, only specified attributes are counted, not attributes that would always use a default value.)
Required Children
The total number of different elements that always occur in any context
Optional Children
The total number of different elements that do not always occur
Required as First Child
The total number of elements which always have a particular element as their first child

Weighted Document Complexity Metric with Flow Impact

The Weighted Document Complexity Metric allows user-defined weighting of each parameter. The Work Impact components is constructed by additionally weighting each element according to various kinds of impacts it will have on formatting. This can get provide a more accurate estimate of the work involved in creating a stylesheet, for example. The following information is used:

Flow Impact
The element appears in a different text flow or column to its preceding element
Page Impact
The element appear on a different page to the preceding element
Block Impact
The element appears in its own block, compared to the preceding element
Reference Use
The element is used as the source or target of a reference by some other element or process