Document structure inspection method and apparatus
First Claim
1. A document structure inspection method comprising the step of:
- applying a document structure alteration rule, which is stored by storage means, to a first document structure definition expressing the structure of a structured document written in a document structure definition language for the purpose of effecting conversion to generate a second document structure definition;
wherein said document structure alteration rule includes a replacement rule for setting a document structure definition element name that is to be replaced in accordance with an element name contained in a document structure definition targeted for application and an addition rule for setting a document structure definition element name that is to be added in accordance with the end of an element name contained in a document structure definition targeted for application, wherein said conversion creates said second document structure definition by replacing a specified element with an element set in a document structure definition stored in said storage means when an element name targeted for application, which is set in said replacement rule, appears in said first document structure definition, and by adding a set document structure definition element, which is stored in said storage means, to a location after a specified element when an element name targeted for application, which is set in said addition rule, appears in said first document structure definition; and
conducting an inspection on an individual element name basis to determine whether said second document structure definition is consistent with a corresponding document structure definition stored in said storage means.
1 Assignment
0 Petitions
Accused Products
Abstract
Structured documents written in a document structure definition language may be inconsistent with a predetermined document structure definition when they are encrypted partly or electronically signed. The document structure inspection method according to the present invention applies a document structure alteration rule to a document structure definition expressing the structure of such structured documents and effects conversion to generate a second document structure definition. The second document structure definition is then checked to determine whether it is consistent with a corresponding, predetermined document structure definition. The document structure alteration rule includes, for instance, a replacement rule for replacing an element contained in a document structure definition by another element, and an addition rule for adding an element to a location after the target document structure definition element.
-
Citations
14 Claims
-
1. A document structure inspection method comprising the step of:
-
applying a document structure alteration rule, which is stored by storage means, to a first document structure definition expressing the structure of a structured document written in a document structure definition language for the purpose of effecting conversion to generate a second document structure definition;
wherein said document structure alteration rule includes a replacement rule for setting a document structure definition element name that is to be replaced in accordance with an element name contained in a document structure definition targeted for application and an addition rule for setting a document structure definition element name that is to be added in accordance with the end of an element name contained in a document structure definition targeted for application, wherein said conversion creates said second document structure definition by replacing a specified element with an element set in a document structure definition stored in said storage means when an element name targeted for application, which is set in said replacement rule, appears in said first document structure definition, and by adding a set document structure definition element, which is stored in said storage means, to a location after a specified element when an element name targeted for application, which is set in said addition rule, appears in said first document structure definition; and
conducting an inspection on an individual element name basis to determine whether said second document structure definition is consistent with a corresponding document structure definition stored in said storage means. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A document structure inspection apparatus, comprising:
-
a document structure definition converter for applying a document structure alteration rule stored by storage means to a first document structure definition, which expresses the structure of a structured document written in a document structure definition language, for the purpose of effecting conversion to generate a second document structure definition; and
a document structure inspection unit for conducting an inspection on an individual element name basis to determine whether said second document structure definition is consistent with a corresponding document structure definition stored in said storage means;
wherein said document structure alteration rule includes a replacement rule, which sets a document structure definition element name that is to be replaced in accordance with an element name contained in a document structure definition targeted for application, and an addition rule, which sets a document structure definition element name that is to be added in accordance with the end of an element name contained in a document structure definition targeted for application; and
wherein said document structure definition converter comprises means for replacing a specified element by an element set in a document structure definition stored in said storage means when an element name targeted for application, which is set in said replacement rule, appears in said first document structure definition, and means for adding a set document structure definition element stored in said storage means to a location after a specified element when an element name targeted for application, which is set in said addition rule, appears in said first document structure definition. - View Dependent Claims (8, 9, 10, 11, 12)
-
-
13. A program for causing a computer to implement a conversion function for applying a document structure alteration rule stored by storage means to a first document structure definition, which expresses the structure of a structured document written in a document structure definition language, for the purpose of effecting conversion to generate a second document structure definition, and an inspection function for conducting an inspection on an individual element name basis to determine whether said second document structure definition is consistent with a corresponding document structure definition stored in said storage means;
-
wherein said document structure alteration rule includes a replacement rule, which sets a document structure definition element name that is to be replaced in accordance with an element name contained in a document structure definition targeted for application, and an addition rule, which sets a document structure definition element name that is to be added in accordance with the end of an element name contained in a document structure definition targeted for application; and
wherein said conversion function includes a function for replacing a specified element by an element set in a document structure definition stored in said storage means when an element name targeted for application, which is set in said replacement rule, appears in said first document structure definition, and a function for adding a set document structure definition element stored in said storage means to a location after a specified element when an element name targeted for application, which is set in said addition rule, appears in said first document structure definition. - View Dependent Claims (14)
-
Specification