Changeset 20968 in project


Ignore:
Timestamp:
10/24/10 17:18:49 (11 years ago)
Author:
sjamaan
Message:

Document new sxml-fu conversion procedures

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/sxml-fu

    r16113 r20968  
    3939each, in turn, starting with the {{tree}} input.  The final output of
    4040{{pre-post-order}} on the last ruleset is returned.
     41
     42<procedure>(normal->starred-transformation-rules rules)</procedure>
     43
     44Convert traditional sxml transformation rules (where handlers accept a
     45fixed number of arguments corresponding to the element and its child
     46nodes) to their "starred" equivalents (where handlers accept two arguments;
     47the element and a list of its child nodes).
     48
     49This will ''not'' make these handlers magically accept huge nodes.
     50This is merely for convenience when you want to convert some legacy
     51rules to fit into an application based on starred rules.
     52
     53<procedure>(starred->normal-transformation-rules rules)</procedure>
     54
     55Convert "starred" sxml transformation rules (where handlers accept two
     56arguments; the element and a list of its child nodes) to their
     57traditional equivalents (where handlers accept a fixed number of
     58arguments corresponding to the element and its child nodes).
     59
     60This procedure is useful for integrating new rules into legacy
     61applications.  Note that after applying this the handlers will
     62have limited node size accepted.
    4163
    4264=== sxml-pagination
     
    234256=== Changelog
    235257
     258* trunk Add conversion procedures between starred and nonstarred forms.
    236259* 0.2 Add procedures in {{sxml-fu}} module
    237260* 0.1 Initial release (port of [[/eggref/3/spiffy-utils|spiffy-utils]])
Note: See TracChangeset for help on using the changeset viewer.