9. An apparatus for processing and debugging a hierarchically structured document, comprising: means for setting a break point at a line of the document; means for creating a data structure for keeping track of hierarchical levels of the document; means for inputting an element indicating a beginning of a first hierarchical level of the document; means for creating a plurality of references for an entry A in said data structure for keeping track of hierarchical levels, said plurality of references for the entry A being used to keep track of information of the first hierarchical level of the document including references used for keeping track of at least one of defined resources, declared resources, and dictionaries which are used during processing of the document; means for inputting an element at the first hierarchical level indicating that a first of said at least one of defined resources, declared resources, and dictionaries is to be used during processing of the document; means for changing at least one of the references for the entry A used for keeping track of information to refer to said first of said at least one of defined resources, declared resources, and dictionaries; means for inputting an element indicating a beginning of a second hierarchical level of the document which is below the first hierarchical level in the hierarchical structure of the document; means for creating a plurality of references for an entry B in said data structure for keeping track of hierarchical levels, the entry B being different from the entry A in said data structure for keeping track of hierarchical levels, said plurality of references for the entry B being used to keep track of information of the second hierarchical level of the document including references used for keeping track of at least one of defined resources, declared resources, and dictionaries which are used during processing of the document; means for inputting an element at the second hierarchical level indicating that a second of said at least one of defined resources, declared resources, and dictionaries is to be used during processing of the second hierarchical level, in addition to said first of said at least one of defined resources, declared resources, and dictionaries; means for changing the reference used for keeping track of said at least one of defined resources, declared resources, and dictionaries for the entry B to refer first to said second of said at least one of defined resources, declared resources, and dictionaries and subsequently to said first of said at least one of defined resources, declared resources, and dictionaries; means for accessing said at least one of defined resources, declared resources, and dictionaries by using first the reference to the second of said at least one of defined resources, declared resources, and dictionaries and if a desired parameter is not found, using subsequently the subsequent reference to the second of said at least one of defined resources, declared resources, and dictionaries, without referring to said plurality of references for the entry A; means for suspending processing of the document when said break point is processed; means for inputting a debugging command after processing has been suspended; and means for processing said debugging command.
9. An apparatus for processing and debugging a hierarchically structured document, comprising: means for setting a break point at a line of the document; means for creating a data structure for keeping track of hierarchical levels of the document; means for inputting an element indicating a beginning of a first hierarchical level of the document; means for creating a plurality of references for an entry A in said data structure for keeping track of hierarchical levels, said plurality of references for the entry A being used to keep track of information of the first hierarchical level of the document including references used for keeping track of at least one of defined resources, declared resources, and dictionaries which are used during processing of the document; means for inputting an element at the first hierarchical level indicating that a first of said at least one of defined resources, declared resources, and dictionaries is to be used during processing of the document; means for changing at least one of the references for the entry A used for keeping track of information to refer to said first of said at least one of defined resources, declared resources, and dictionaries; means for inputting an element indicating a beginning of a second hierarchical level of the document which is below the first hierarchical level in the hierarchical structure of the document; means for creating a plurality of references for an entry B in said data structure for keeping track of hierarchical levels, the entry B being different from the entry A in said data structure for keeping track of hierarchical levels, said plurality of references for the entry B being used to keep track of information of the second hierarchical level of the document including references used for keeping track of at least one of defined resources, declared resources, and dictionaries which are used during processing of the document; means for inputting an element at the second hierarchical level indicating that a second of said at least one of defined resources, declared resources, and dictionaries is to be used during processing of the second hierarchical level, in addition to said first of said at least one of defined resources, declared resources, and dictionaries; means for changing the reference used for keeping track of said at least one of defined resources, declared resources, and dictionaries for the entry B to refer first to said second of said at least one of defined resources, declared resources, and dictionaries and subsequently to said first of said at least one of defined resources, declared resources, and dictionaries; means for accessing said at least one of defined resources, declared resources, and dictionaries by using first the reference to the second of said at least one of defined resources, declared resources, and dictionaries and if a desired parameter is not found, using subsequently the subsequent reference to the second of said at least one of defined resources, declared resources, and dictionaries, without referring to said plurality of references for the entry A; means for suspending processing of the document when said break point is processed; means for inputting a debugging command after processing has been suspended; and means for processing said debugging command. 10. An apparatus according to claim 9, wherein said means for setting a break point includes: means for inputting a line number from a user indicating where a break is to occur.