Formatting of XML documents

  • stylesheet languages are utilized

  • stylesheet language separates presentation and content

  • XML document + stylesheet ⇒ formatted document

  • advantages of using styles

    • one stylesheet can be used for many documents (uniform look)

    • for one document we can use several different stylesheets depending on a requested target format

  • stylesheet languages

    • CSS—simple, not very powerful, used mainly in visual editors

    • XSL—very powerful and flexible

      • XSLT—transformation of XML into XML, HTML or text

      • XSL-FO—print output formatting