Output the sxml in tree to the current output port, after folding over the rulesets using sxml-fold-rules.