2. The method of claim 1 further comprising the step of storing successful queries for elements in the repository in a successful query database.
2. The method of claim 1 further comprising the step of storing successful queries for elements in the repository in a successful query database. 3. The method of claim 2 wherein if the query returns a plurality of query results, ranking the query results using data in the successful query database, and selecting the top ranked query result for insertion into the document.