class documentation
class AnonymousHyperlinks(Transform): (source)
Constructor: AnonymousHyperlinks(document, startnode)
Link anonymous references to targets. Given:
<paragraph>
<reference anonymous="1">
internal
<reference anonymous="1">
external
<target anonymous="1" ids="id1">
<target anonymous="1" ids="id2" refuri="http://external">
Corresponding references are linked via "refid" or resolved via "refuri":
<paragraph>
<reference anonymous="1" refid="id1">
text
<reference anonymous="1" refuri="http://external">
external
<target anonymous="1" ids="id1">
<target anonymous="1" ids="id2" refuri="http://external">
| Method | apply |
Override to apply the transform to the document tree. |
| Class Variable | default |
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). |