XML patterns language
First Claim
1. A computer implemented method for evaluating a source document for compliance with a rule set that represents a set of contextual guidelines to which the source document must conform, comprising:
- parsing the rule set for rule node, wherein the rule node provides a context value for identifying in the source document a set of source nodes that should be evaluated for conformance to the contextual guidelines;
evaluating the context value of the rule node in relation to the source document to identify in the source document the set of nodes that should be evaluated for conformance to the contextual guidelines;
parsing the rule node for a pattern node, wherein the pattern node includes a pattern matching expression and is a descendent of the rule node, and wherein the pattern node represents one of the set of contextual guidelines to which the source document must conform;
evaluating the pattern matching expression of the pattern node to determine whether a match exists between the pattern matching expression and at least one source node;
if a match exists, generating a repair document including computer code that is executed to repair a nonconformance between the at least one source node and the pattern node, if the at least one source node does not conform to the pattern node;
parsing the pattern node for a repair node, wherein the repair node includes a summary node for summarizing the nonconformance and a detail message node to provide further detail of the nonconformance;
evaluating a selection value of the summary node to determine a summary expression and the detail message node to determine a detail expression, wherein the summary expression and the detail expression each comprises an XPath expression;
evaluating the expression with information from the at least one source node to identify a particular summary message text and evaluating the detail expression with information about the at least one source node to identify a particular detail message text; and
one step selected from the group steps consisting of;
storing the summary message text and the detail message text in a report document; and
displaying the summary message text and the detail message text.
2 Assignments
0 Petitions
Accused Products
Abstract
Evaluating a source document for compliance with a rule set that represents contextual guidelines to which the source document must conform. The rule set comprises a rule node that includes a context that is compared to the source document to identify candidate nodes for further evaluation. Each rule node also includes a descendant pattern node that includes a pattern matching expression representing at least one aspect of the contextual guidelines to which the source document must conform. Preferably a match between a candidate node and the pattern matching expression indicates a nonconformance to the contextual guideline(s), and a predefined action is initiated. Predefined actions include reporting the nonconformance, and automatically repairing the nonconformance through script code.
144 Citations
24 Claims
-
1. A computer implemented method for evaluating a source document for compliance with a rule set that represents a set of contextual guidelines to which the source document must conform, comprising:
-
parsing the rule set for rule node, wherein the rule node provides a context value for identifying in the source document a set of source nodes that should be evaluated for conformance to the contextual guidelines; evaluating the context value of the rule node in relation to the source document to identify in the source document the set of nodes that should be evaluated for conformance to the contextual guidelines; parsing the rule node for a pattern node, wherein the pattern node includes a pattern matching expression and is a descendent of the rule node, and wherein the pattern node represents one of the set of contextual guidelines to which the source document must conform; evaluating the pattern matching expression of the pattern node to determine whether a match exists between the pattern matching expression and at least one source node; if a match exists, generating a repair document including computer code that is executed to repair a nonconformance between the at least one source node and the pattern node, if the at least one source node does not conform to the pattern node; parsing the pattern node for a repair node, wherein the repair node includes a summary node for summarizing the nonconformance and a detail message node to provide further detail of the nonconformance; evaluating a selection value of the summary node to determine a summary expression and the detail message node to determine a detail expression, wherein the summary expression and the detail expression each comprises an XPath expression; evaluating the expression with information from the at least one source node to identify a particular summary message text and evaluating the detail expression with information about the at least one source node to identify a particular detail message text; and one step selected from the group steps consisting of; storing the summary message text and the detail message text in a report document; and displaying the summary message text and the detail message text. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A system for evaluating a source document for compliance with a rule set that represents a set of contextual guidelines to which the source document must conform, comprising:
-
a memory in which are stored machine instructions; and a processor that is coupled to the memory, said processor executing the machine instructions, which cause the processor to carry out a plurality of functions, including; parsing the rule set for rule node, wherein the rule node provides a context value for identifying in the source document, a set of source nodes that should be evaluated for conformance to the contextual guidelines; evaluating the context value of the rule node in relation to the source document to identify in the source document the set of nodes that should be evaluated for conformance to the contextual guidelines; parsing the rule node for a pattern node, wherein the pattern node includes a pattern matching expression and is a descendent of the rule node, and wherein the pattern node represents one of the set of contextual guidelines to which the source document must conform; evaluating the pattern matching expression of the pattern node to determine whether a match exists between the pattern matching expression and at least one source node; if a match exists, generating a repair document that includes computer code, which when executed, causes the processor to repair a nonconformance between the at least one source node and the pattern node, if the at least one source node does not conform to the pattern node; parsing the pattern node for a repair node, wherein the repair node includes a summary node for summarizing the nonconformance and a detail message node to provide further detail of the nonconformance; evaluating a selection value of the summary node to determine a summary expression and the detail message node to determine a detail expression, wherein the summary expression and the detail expression each comprises an XPath expression; evaluating the expression with information from the at least one source node to identify a particular summary message text and evaluating the detail expression with information about the at least one source node to identify a particular detail message text; and one function selected from the group functions consisting of; storing the summary message text and the detail message text in a report document; and displaying the summary message text and the detail message text. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
Specification