1. An apparatus comprising: at least one processor; a memory coupled to the at least one processor; a repository residing in the memory that includes a document that includes a plurality of elements; and a content management system residing in the memory and executed by the at least one processor, the content management system comprising: a dynamic inclusion rule that specifies at least one relationship between a data source in the document and a data target in the document and that specifies a corresponding query to the repository to execute when the data source in the document changes; and a dynamic inclusion mechanism that monitors the document for changes to the data source specified in the dynamic inclusion rule, and when the data source in the document is changed, and when all parameters for the query are available to execute the query, the dynamic inclusion mechanism automatically executes the query in a background process, wherein the query includes at least one parameter corresponding to the changed data source, the query returning a query result and the dynamic inclusion mechanism automatically inserts a link to the query result at the data target in the document, and when the data source in the document is changed, and when not all parameters for the query are available to execute the query, the dynamic inclusion mechanism determines from a successful query database that stores successful queries for elements in the repository a plurality of related queries and presents a list of the related queries to a user who selects one of the related queries for execution, wherein the dynamic inclusion mechanism executes the selected query and automatically inserts into the document a link to results of executing the selected query at the data target in the document.