Claims
- 1. A method of editing a set of rules contained in a first document, said rules defining a transformation of data on a second document, said first document and said second document having elements constructed in a tree structure having nodes, each said rule on said first document having a template structure including at least one match condition, said match condition being an expression in said template that describes a subset of tree nodes, said method comprising:
selecting at least one rule in said first document; and checking a match condition of said at least one selected rule with said tree nodes from said second document to determine which structures in said second document match said selected rule.
- 2. The method of claim 1, further comprising:
presenting a listing of proposed rule modifications, based on said determination of matched structures.
- 3. The method of claim 1, wherein said first document comprises an XSLT (extensible Style Language Transformations) stylesheet and said second document comprises an eXtensible Mark-up Language (XML) source data.
- 4. The method of claim 1, further comprising:
merging any rules having an identical effect into a single rule.
- 5. The method of claim 2, further comprising:
selecting a preferred one of said choice of proposed rule modifications; and modifying said listing of proposed rule modifications based on said user selection.
- 6. The method of claim 2, wherein said listing of proposed rule modifications comprises at least one of:
a list of common refinements that permit a simple rule creation with minimal inputs; and a selective refinement panel that permits selection of possible refinements in each of a listing of categories.
- 7. The method of claim 5, wherein said selection includes an indication of nodes required to be processed by the rule being edited.
- 8. A computer comprising:
an editing module programmed to execute a method of editing a set of rules contained in a first document, said rules defining a transformation of data on a second document, said first document and said second document having elements constructed in a tree structure having nodes, each said rule on said first document having a template structure including at least one match condition, said match condition comprising an expression in said template that describes a subset of tree nodes, said editing module comprising: an input module for receiving a selection of at least one rule in said first document; and a comparator for checking a match condition of said at least one selected rule with said tree nodes from said second document to determine which structures in said second document match said selected rule.
- 9. The computer of claim 8, further comprising:
a display for presenting a listing of proposed rule modifications, based on said determination of matched structures.
- 10. The computer of claim 8, wherein said first document comprises an XSLT (eXtensible Style Language Transformations) stylesheet and said second document comprises an eXtensible Mark-up Language (XML) source data.
- 11. The computer of claim 8, further comprising:
an input module to receive a selection of a preferred one of said choice of proposed rule modifications; and a rule modification module to modify said listing of proposed rule modifications, based on said selection.
- 12. The computer of claim 9, wherein said listing of proposed rule modifications comprises at least one of:
a list of common refinements that permit a simple rule creation with minimal inputs; and a selective refinement panel that permits selection of possible refinements in each of a listing of categories.
- 13. The computer of claim 11, wherein said selection includes an indication of nodes required to be processed by the rule being edited.
- 14. A signal-bearing medium tangibly embodying a program of machine-readable instructions executable by a digital processing apparatus to perform a method of editing a set of rules contained in a first document, said rules defining a transformation of data on a second document, said first document and said second document having elements constructed in a tree structure having nodes, each said rule on said first document having a template structure including at least one match condition, said match condition being an expression in said template that describes a subset of tree nodes, said method comprising:
selecting at least one rule in said first document; and checking a match condition of said at least one selected rule with said tree nodes from said second document to determine which structures in said second document match said selected rule.
- 15. The signal-bearing medium of claim 14, said method further comprising:
presenting a listing of proposed rule modifications, based on said determination of matched structures.
- 16. The signal-bearing medium of claim 14, wherein said first document comprises an XSLT (eXtensible Style Language Transformations) stylesheet and said second document comprises an eXtensible Mark-up Language (XML) source data.
- 17. The signal-bearing medium of claim 14, said method further comprising:
merging any rules having an identical effect into a single rule.
- 18. The signal-bearing medium of claim 15, said method further comprising:
selecting a preferred one of said choice of proposed rule modifications; and modifying said listing of proposed rule modifications based on said user selection.
- 19. The signal-bearing medium of claim 15, wherein said listing of proposed rule modifications comprises at least one of:
a list of common refinements that permit a simple rule creation with minimal inputs; and a selective refinement panel that permits selection of possible refinements in each of a listing of categories.
- 20. The signal-bearing medium of claim 18, wherein said selection includes an indication of nodes required to be processed by the rule being edited.
CROSS-REFERENCE TO RELATED APPLICATIONS
[0001] The present Application is related to the following co-pending applications:
[0002] U.S. patent application Ser. No. 09/______, filed on ______, to Adler et al., entitled “METHOD AND SYSTEM FOR STYLESHEET-CENTRIC EDITING”, having IBM Docket YOR920010685;
[0003] U.S. patent application Ser. No. 09/______, filed on ______, to Rose, K. H., entitled “METHOD AND SYSTEM FOR COPY AND PASTE TECHNOLOGY FOR STYLESHEET EDITING”, having IBM Docket YOR920010609; and
[0004] U.S. patent application Ser. No. 09/______, filed on ______, to Clarke et al., entitled “METHOD AND SYSTEM STYLESHEET EXECUTION INTERACTIVE FEEDBACK”, having IBM Docket YOR920010569,
[0005] all assigned to the present assignee, and all incorporated herein by reference.