1. A method comprising: at a publication server, receiving a document in an external format and converting the document to an internal format, the converting comprising analyzing contents of the document to identify, based on a plurality of document-element types associated with the internal format, a plurality of document elements collectively constituting the contents of the document; and storing, in one or more databases, an entry for each of the identified document elements and one or more views for the document, each view comprising an ordered list of document elements selected from the identified document elements.