|        | |||||
|  | |||||
| XML to HTML conversions: basic formatting | |||||
| Introduction: XML to HTML conversions: basic formatting | 
Sample
This program uses the mart.xml sample input file.
  down-translate with xml   ; Use XML parser.
  element #implied
    output "%c"
  element title
    local stream title
    set title to "%c"
    output "<title>%g(title)</title>%n" || "<h1>%g(title)</h1>%n"
  element audience
    output "<b>For:</b> <i>%c</i>%n"
  element p
    output "<p>%n%n%c"
  element xref
    output "[some reference]%c%n"
  element glossary
    output "%n%n<h2>Glossary</h2>%n%n" || "<ul>%n%c" || "</ul>%n"
  element term
    output "<li>%c:"
  element defn
    output " %c%n"
| ---- |