What's a document?



A document is data that you can read.

  • Documents are a superset of data
  • Documents are harder than data

The basic problem with documents is that we need to display them in lots of different forms. This is the problem that XML was originally designed to solve.

Example: This presentation.

  • Written in XML
  • HTML generated using a stylesheet for online publishing
  • RTF generated by the same tool using a stylesheet for print publishing

[Sun logo]