Abstract: The use of a method/apparatus for generating structured documents is disclosed. A counter is coupled for a product implementing the method/apparatus. When the counter is permitted to increment, the structured documents can be generated from unstructured documents. Identifiers in user-defined document type definitions are used to associate selected objects or group objects in the unstructured documents so that association information of the selected objects or group objects can facilitate the generation of files in a markup language suitable for presentations on various media.