class documentation

class InternalTargets(Transform):

View In Hierarchy

Undocumented

Method apply Override to apply the transform to the document tree.
Method resolve​_reference​_ids Given:
Class Variable default​_priority Numerical priority of this transform, 0 through 999 (override).

Inherited from Transform:

Method __init__ Initial setup for in-place document transforms.
Instance Variable document The document tree to transform.
Instance Variable language Language module local to this document.
Instance Variable startnode Node from which to begin the transform. For many transforms which apply to the document as a whole, startnode is not set (i.e. its value is None).
def apply(self):
Override to apply the transform to the document tree.
def resolve_reference_ids(self, target):

Given:

<paragraph>
    <reference refname="direct internal">
        direct internal
<target id="id1" name="direct internal">

The "refname" attribute is replaced by "refid" linking to the target's "id":

<paragraph>
    <reference refid="id1">
        direct internal
<target id="id1" name="direct internal">
default_priority: int =
Numerical priority of this transform, 0 through 999 (override).