A dynamic foldering system automatically manages the creation and deletion
of run-time dynamic folders and selection of documents, items, or object
graphs found in the run-time dynamic folders. The system comprises a
query/predicate for a design-time folder group based on which dynamic
folders are automatically managed, a variable binding mechanism,
automatic identifications of dynamic folders containing a particular
object, parallel navigation, and customized combination of foldering
results. The dynamic folder hierarchy is defined by a hierarchy of
design-time folder groups defined by a query/predicate on a document
comprising structured or semi-structured data. Modifiable criteria for
creating the dynamic folder hierarchy are provided by the user. Variable
binding provides powerful query/predicate definitions on hierarchical
data or graph-structured data. Given a document, the system automatically
identifies which dynamic folders contain the document.