Changeset 15357 in project


Ignore:
Timestamp:
08/07/09 14:51:19 (10 years ago)
Author:
sjamaan
Message:

Describe the new procedures

File:
1 edited

Legend:

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

    r15353 r15357  
    2323
    2424sxml-fu consists of several modules, which are documented below.
     25
     26=== sxml-fu
     27
     28This module contains useful procedures that allow you to use the other
     29modules more easily.
     30
     31<procedure>(output-xml tree rulesets)</procedure>
     32
     33Output the sxml in {{tree}} to the current output port, after folding
     34over the rulesets using {{sxml-fold}}.
     35
     36<procedure>(sxml-fold tree rulesets)</procedure>
     37
     38Fold over the list of {{rulesets}} by calling {{pre-post-order}} on
     39each, in turn, starting with the {{tree}} input.  The final output of
     40{{pre-post-order}} on the last ruleset is returned.
    2541
    2642=== sxml-pagination
     
    173189         "determining this outside of the (paginate-list) 'tag'."))))))
    174190
    175 (define (output-html content . rules)
    176   (SRV:send-reply (fold (lambda (ruleset content)
    177                           (pre-post-order content ruleset)) content rules)))
    178 
    179191(parameterize ((base-uri (request-uri (current-request))))
    180    (output-html (content) pagination-rules shortcut-rules my-conversion-rules))
     192  (output-xml (content)
     193              (list pagination-rules shortcut-rules my-conversion-rules)))
    181194</enscript>
    182195
Note: See TracChangeset for help on using the changeset viewer.