Package docutils :: Package transforms :: Module references :: Class Substitutions
[show private | hide private]
[frames | no frames]

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.

Class Variable Summary
int default_priority = 220                                                                   

Method Details

apply(self)

Override to apply the transform to the document tree.
Overrides:
docutils.transforms.Transform.apply (inherited documentation)

Class Variable Details

default_priority

Type:
int
Value:
220                                                                   

Generated by Epydoc 2.0 on Tue Jul 22 05:31:26 2003 http://epydoc.sf.net