the full, absolute path of this document in the (virtual) document tree
the tree model obtained from parsing the markup document
separate named fragments that had been extracted from the content
the configuration for this document
the number of this document inside a document tree hierarchy, expressed as a list of Ints
a list of rewrite rules that have not yet been applied to the document
the configuration for this document
the tree model obtained from parsing the markup document
separate named fragments that had been extracted from the content
Indicates whether all rewrite rules have already been applied to this document.
The local name of this document.
the full, absolute path of this document in the (virtual) document tree
the full, absolute path of this document in the (virtual) document tree
Removes all rewrite rules that have not yet been applied from this document.
Returns a new, rewritten document model based on the specified rewrite rules.
Returns a new, rewritten document model based on the specified rewrite rules.
If the specified partial function is not defined for a specific element the old element remains
in the tree unchanged. If it returns None
then the node gets removed from the tree,
if it returns an element it will replace the old one. Of course the function may
also return the old element.
The rewriting is performed in a way that only branches of the tree that contain new or removed elements will be replaced. It is processed bottom-up, therefore any element container passed to the rule only contains children which have already been processed.
Returns a new, rewritten document model based on the default rewrite rules.
Returns a new, rewritten document model based on the specified rewrite rules.
Returns a new, rewritten document model based on the specified rewrite rules.
If none of the specified partial functions is defined for a specific element the old element remains
in the tree unchanged. If one of them returns None
then the node gets removed from the tree,
if one of them returns an element it will replace the old one. Of course the function may
also return the old element.
The rewriting is performed in a way that only branches of the tree that contain new or removed elements will be replaced. It is processed bottom-up, therefore any element container passed to the rule only contains children which have already been processed.
The section structure of this document based on the hierarchy of headers found in the original text markup.
The title of this document, obtained from the document structure or from the configuration.
Represents a single document and provides access to the document content and structure as well as hooks for triggering rewrite operations.