Class Substitutions
Transform
--+
|
Substitutions
Given the following document as input:
<document>
<paragraph>
The
<substitution_reference refname="biohazard">
biohazard
symbol is deservedly scary-looking.
<substitution_definition name="biohazard">
<image alt="biohazard" uri="biohazard.png">
The substitution_reference will simply be replaced by the
contents of the corresponding substitution_definition.
The transformed result will be:
<document>
<paragraph>
The
<image alt="biohazard" uri="biohazard.png">
symbol is deservedly scary-looking.
<substitution_definition name="biohazard">
<image alt="biohazard" uri="biohazard.png">
Method Summary |
|
apply (self)
Override to apply the transform to the document tree. |
Inherited from Transform |
|
__init__ (self,
document,
startnode)
Initial setup for in-place document transforms. |
default_priority
-
- Type:
-
int
- Value:
|