# Patent

## Title
Correlation, association, or correspondence of electronic forms

## Abstract

Determining correspondence, association, and/or correlation between nodes of electronic forms based on schemas of those forms is described. Importing, merging, and/or annotating data from one electronic form into another electronic form based on correspondence, association, and/or correlation between nodes is also described.

## Background
RELATED APPLICATIONS
This application is a divisional of and claims priority to U.S. patent application Ser. No. 13/161,419 filed Jun. 15, 2011, which is a divisional of and claims priority to U.S. patent application Ser. No. 11/931,730 filed Oct. 31, 2007, which is a continuation of and claims priority to U.S. patent application Ser. No. 10/636,475, filed on Aug. 6, 2003, the disclosures of which are incorporated by reference herein.


BACKGROUND
Extensible markup language (XML) is increasingly becoming the preferred format for transferring data. XML is a tag-based hierarchical language that is extremely rich in terms of the data that it can be used to represent. For example, XML can be used to represent data spanning the spectrum from semi-structured data (such as one would find in a word-processing document) to generally structured data (such as that which is contained in a table). XML is well-suited for many types of communication including business-to-business and client-to-server communication.
Data represented in XML is often created and retained in electronic documents, such as electronic forms. An electronic form that is written in XML typically is governed by an XML schema (XSD) and can be altered by applying an eXtensible Style-sheet Language Transformation (XSLT) file on the form. For more information on XML, XSLT, and XSD (schemas), the reader is referred to the following documents which are the work of, and available from the W3C (World Wide Web consortium): XML Schema Part 2: Datatypes; XML Schema Part 1: Structures; and XSL Transformations (XSLT) Version 1.0; and XML 1.0 Second Edition Specification.
With so much information being described and transferred through XML, it is increasingly important to have ways to aggregate, or import information from one XML document into another. A manager, for instance, may want to study how his or her salespeople are performing. The manager can study dozens of XML documents, such as purchase orders filled out by the salespeople, and manually order, categorize, and add up the totals to determine how each salesperson is performing. With aggregation, however, the manager can have pertinent data from all of the purchase orders imported into one, summary document. This summary document can be organized to show how much each salesperson sold, when it was sold, and so on. Thus, aggregation can allow people to more easily and efficiently analyze and organize information.
Aggregation, however, can be very difficult to perform. To properly aggregate forms, a programmer commonly needs a thorough understanding of each of the electronic form's schemas. Even with this understanding, the programmer often contends with resulting, aggregated forms that are not valid according to their schemas. These and other complexities typically require a programmer with a high degree of skill to spend a significant amount of time to aggregate data from one electronic form into another.
For these reasons, aggregating XML documents, though useful, can be difficult, time consuming, and require a high degree of skill.
SUMMARY
Determining correspondence, association, and/or correlation between nodes of electronic forms based on schemas of those forms is described. Importing, merging, and/or annotating data from one electronic form into another electronic form based on correspondence, association, and/or correlation between nodes is also described.



BRIEF DESCRIPTION OF THE DRAWINGS
FIG. 1 illustrates a screen shot showing an exemplary target electronic form into which a user can select to have data imported from another electronic form.
FIG. 2 illustrates a partial screen shot showing a menu by which a user can select to import data from one electronic form into another electronic form.
FIG. 3 illustrates a database selection screen showing electronic forms from which a user can select.
FIG. 4 illustrates a screen shot showing an exemplary electronic form from which a user can select to have data imported into another electronic form.
FIG. 5 illustrates a screen shot showing an exemplary electronic form having data imported into it from another electronic form.
FIG. 6 illustrates a computer system capable of implementing a method for importing data from one electronic form into another electronic form.
FIG. 7 illustrates an exemplary set of transformation annotator-types usable in a transformation file to annotate an electronic form with instructions.
FIG. 8 is a flow diagram of an exemplary process for importing data from one electronic form into another electronic form.
FIG. 9 is a flow diagram of an exemplary process for importing data from one electronic form into another electronic form with and without annotations.
FIG. 10 illustrates a screen shot showing an exemplary target electronic form into which a user can select to have data imported from another electronic form.
FIG. 11 illustrates a screen shot showing an exemplary electronic form from which a user can select to have data imported into another electronic form.
FIG. 12 illustrates a screen shot showing an exemplary electronic form having data imported into it from another, substantially different electronic form.
FIG. 13 is a flow diagram of an exemplary process for importing data from one electronic form into another electronic form without use of annotations or instructions.
FIG. 14 illustrates two exemplary, simple, and graphical representations of two electronic forms that are hierarchically structured and organized into nodes.
FIG. 15 is a block diagram of a computer system that is capable of supporting aggregation of electronic forms.



The same numbers are used throughout the disclosure and figures to reference like components and features.
DETAILED DESCRIPTION
The following disclosure describes an easy and simple way for a user to import data from one electronic form into another electronic form. For sufficiently similar electronic forms, a user can import data from one or many forms (called “sources”) into another electronic form (called the “target”) without needing special skills, such as that of programming transformation files. The system and method enables a user to import data from a source electronic form into a similar target electronic form simply by selecting the source and the target. By so doing, a user can combine data from many forms into one form, or simply import data from one form into another form. This allows the user to see data from one or many source forms in a target form without having to key-in data from the source forms into the target form. It also allows the user to aggregate the data into a target form that combines, alters, adjusts, or otherwise makes analysis and presentation of data simple and easy. As used herein, data can include numbers, text, rich text, dates/times, code (such as a portion of an electronic form written in XML), information (such as numbers and text) within code, a node or nodes of a hierarchical electronic form or information within those nodes, and the like.
For dissimilar source and target electronic forms, the following disclosure describes a way for a user to easily and simply import data from a source form into a target form. For these dissimilar source and target electronic forms, the system and method can annotate the source form to aid an import engine in importing data from the source into the target. This annotation can be performed by applying a transformation file on the source to annotate it. The transformation file can be re-used on similar sources for aggregation with a similar target, thereby reducing the time and effort spent by a designer in creating transformation files.
In at least these two ways, the disclosed system and method enables a user to easily import data from one electronic form into another. In cases where the source electronic form and the target electronic form are similar, an importation engine can import the data without annotating the source form by applying a transformation file. In cases where the source electronic form and the target electronic form are dissimilar, the importation engine can import the data with aid provided by applying a transformation file.
Example Showing Data Aggregation
FIGS. 1 through 5 show, from a user's perspective, a user importing data from a source electronic form into a target electronic form. These exemplary screen shots show an example of what a user can see when importing data.
The target and source electronic forms shown in these figures are governed by substantially similar schemas. For this reason, an import engine (described further below) does not, in this example, annotate or otherwise use a transformation file to aid in importing data from the source electronic form to the target electronic form.
FIG. 1 sets forth an exemplary screen shot 100 showing an example of a target electronic form, here a manager's status report 102. This manager's report 102 contains data-entry fields, which in this example contain data. The manager's report 102 includes the following data-entry fields: a date field 104; a manager's name field 106 (containing the name of the manager, “Target Manager”); a manager's email address field 108; a project field 110; a manager's boss's name field 112; a billing code field 114; a department field 116; a summary field 118; last period fields (an uno field 120 and a dos field 122); this period fields (a red field 124, a green field 126, a blue field 128, a yellow field 130, and a purple field 132); an issues field 134; and a notes field 136.
With this manager's report 102 selected, the user can then select a source electronic form to aggregate into the manager's report 102.
FIG. 2 sets forth a portion of an exemplary screen shot 200 showing an example of an options menu 202. Here the user has selected to aggregate forms, shown at reference numeral 204.
Once this selection is made, a menu of various electronic forms can be presented from which the user chooses an electronic form to aggregate into the manager's report 102.
FIG. 3 sets forth a database selection menu 300 showing electronic forms from which a user can select. Here the user can (and has) selected an electronic form entitled “Source.xml” to aggregate into the manager's report 102. The source electronic form is shown at reference numeral 302.
Once this selection is made, the selected electronic form can be presented (though this is not necessary).
FIG. 4 sets forth an exemplary screen shot 400 showing an example of a source electronic form, here a salesman's status report 402. This salesman's report 402 contains data-entry fields containing data. The salesman's report 402 includes the following data-entry fields: a salesman's date field 404; a salesman's name field 406 (containing the name of the salesman, “Salesman”); a salesman's email address field 408; a salesman's project field 410; a salesman's boss's name field 412 (here the Target Manager from FIG. 1); a salesman's billing code field 414; a salesman's department field 416; a salesman's summary field 418; salesman's last period fields (an alpha field 420, a beta field 422, and a gamma field 424); salesman's this period fields (a mu field 426, a nu filed 428, and xi field 430); a salesman's issues fields (a one field 432, a two field 434, and a three field 436); and a salesman's notes field 438.
Also once this selection is made, the salesman's report 402 can be aggregated into the manager's report 102. Here certain parts of the data of the salesman's report 402 are imported into the manager's report 102.
FIG. 5 sets forth an exemplary screen shot 500 showing an example of a target electronic form after data from a source electronic form has been aggregated into the target electronic form, here an aggregate manager's status report 502. This aggregate manager's report 502 contains data-entry fields containing data (which, in one implementation, the manager can then manually edit, if desired).
The aggregate manager's report 502 includes the original data-entry fields shown in FIG. 1: the date field 104; the manager's name field 106; the manager's email address field 108; the project field 110; the manager's boss's name field 112; the billing code field 114; the department field 116; the last period fields 120 and 122; the this period fields 124, 126, 128, 130, and 132; the issues field 134 (not shown); and the notes field 136 (not shown).
The aggregate manager's report 502 also includes data imported from the salesman's report 402, either standing alone (as a new entry or data-entry field) or appended into an existing data-entry field. An example of data appended into an existing data-entry field is shown in an aggregate summary 504, which is the summary 118 only with additional, imported data. Here, the data from the salesman's summary field 418 has been aggregated with the data within the summary 118 from the manager's report 102. Thus, the aggregate summary 504 now reads: “I have a report who has done several things this week. Here's the rolled up summary: Here is some sample data. I've placed it in a rich text field to be concatenated.” The summary 118 from FIG. 1, however, reads: “I have a report who has done several things this week. Here's the rolled up summary:”. The salesman's summary 418 from FIG. 4 reads “Here is some sample data. I′ve placed it in a rich text field to be concatenated.”.
Examples of data imported as a new entry or data-entry field include the data-entry fields shown in FIG. 4 that are now included in the aggregate manager's report 502: the salesman's last period fields 420, 422, and 424; the salesman's this period fields 426, 428, and 430; and the salesman's issues fields 432, 434, and 436 (not shown in FIG. 5).
By importing data from the source electronic form (here the salesman's report 402) into the target form (here the manager's report 102), a user can better see, understand, and analyze information. As shown in FIGS. 2 and 3, the user can aggregate these similar electronic forms simply and easily.
How these electronic forms can be aggregated will be covered in greater detail below. Prior to setting forth various methods for importing data, a system will be set forth in part to aid the reader in understanding the methods later set forth. For discussion purposes, the system set forth below is described in the context of a single computer, a user-input device, and a single display screen. These and other devices will be described first, followed by a discussion of the techniques in which these and other devices can be used.
Exemplary System
FIG. 6 shows an exemplary system 600 to facilitate data importation between electronic forms.
The system 600 includes a display 602 having a screen 604, a user-input device 606, and a computer 608. The user-input device 606 can include any device allowing a computer to receive input from a user, such as a keyboard 610, other devices 612, and a mouse 614. The other devices 612 can include a touch screen, a voice-activated input device, a track ball, and the like. The user can send input via the user-input device 606 to the computer 608 to select an electronic form to be a source for merging into a target electronic form, for instance. The user can use the display 602 and its screen 604 to view user interfaces showing electronic forms, for example.
The computer 608 includes, within block 616, a processing unit 618 to execute applications and a memory 620 containing applications and files. The memory 620 includes volatile and non-volatile memory and applications, such as an operating system 622 and an import engine application 624. The import engine 624 is configured to analyze and import data from one electronic form to another. The import engine 624 can do so without annotations to the source electronic form (discussed below) and/or by following various instructions annotated into an electronic form (also discussed below).
The memory 620 also includes a transformation engine application 626 and a user interface 628, each of which can be part of or separate from the import engine 624.
The memory 620 also includes a target electronic form 630 and a source electronic form 632. The target form 630 and the source form 632 can be located locally in the memory 620, or can be accessed from a remote source across a communications network (not shown). In cases where the source form 632 and the target form 630 are hierarchical in nature, such as when both are written in XML, each form can be represented with nodes. These nodes can include a root node, to which all other nodes are subordinate, and these other nodes. Each node of the form can have nodes subordinate to it (each a child node with respect to that node) and so on. Thus, each node can have a parent node (except for the root node) and each node can have child nodes (though some will not).
In addition, each of these nodes can contain data, such as the data set forth in the data-entry fields (which are assumed to be a representation of some of the data within nodes related to those data-entry fields) shown in FIGS. 1, 4, and 5.
The memory 620 can also include a transformation file 634, which can include transformation annotator-types 636 (set forth in greater detail in FIG. 7). The transformation engine application 626 is configured to apply the transformation file 634 to annotate the source form 632.
With these annotator-types 636 (or others), the transformation file 634 can annotate a particular portion of the source form 632. This transformation file 634, when applied on the source form 632, creates an annotated version of the source form 632. These annotations include instructions to the import engine 624, which the import engine 624 can use to import data from the source form 632 into the target form 630.
These annotator-types 636 can include the annotator-types set forth in FIG. 7 and described in a corresponding discussion.
Each of these annotator-types 636, when applied (as part of the transformation file 634) on the source form 632, can annotate the source form 632 with instructions relating to or including operations for the import engine 624 to perform. Thus, when the import engine 624 analyzes the source form 632 after it has been annotated, the import engine 624 can read certain instructions that have been put into the source form 632 as or within annotations. These instructions can direct the import engine 624 to import certain portions of the source form 632 into certain places within the target form 630, for instance.
In one implementation, the annotations are labeled with a tag to distinguish them from the data of the source form 632. This tag can reference a private XML namespace readable by the import engine 624.
In another implementation, each instruction associated with each of these annotator-types 636 relate to executable code that the import engine 624 executes when it reads that instruction in an annotated version of the source form 632. This executable code, when executed, can import data within a node of the source form 632 into a node of the target form 630, for instance.
FIG. 7 shows an example of the annotator-types 636, which are usable to facilitate data importation between electronic forms. The annotator-types 636 are set forth to explain various types of instructions that can be annotated into the source form 632, but are not the only types of instructions that can be used. They are instead set forth as examples to aid the reader in understanding how the transformation file 634 and annotations to the source form 632 can be used by the import engine 624 to aid the import engine 624 in importing data from the source form 632 into the target form 630.
The annotator-types 636 include an insert annotator 702, a merge annotator 704, a delete annotator 706, a replace annotator 707, a do-not-import annotator 708, a correspondence annotator 710, a singular-correspondence annotator 712, and an ordering annotator 714. These annotators are described in order below.
The insert annotator 702 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to insert a portion of the source form 632 (such as a data) into a portion of the target form 630. These instructions, for hierarchical forms, can direct the import engine 624 to insert a particular node of the source form 632 (or data within that node) as a child node of a particular node of the target form 630. These instructions, again for hierarchical forms, can also direct the import engine 624 to append data from the source form 632 to a node of the target form 630.
The merge annotator 704 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to merge a portion of the source form 632 (such as data) into a portion of the target form 630. These instructions, for hierarchical forms, can direct the import engine 624 to merge the data (or part of the data) of a particular node of the source form 632 into a node of the target form 630.
The delete annotator 706 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to delete a portion of the target form 630. These instructions, for hierarchical forms, can direct the import engine 624 to delete one or more nodes from the target form 630.
The replace annotator 707 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to replace a portion of the target form 630 (such as data) with a portion of the source form 632. These instructions, for hierarchical forms, can direct the import engine 624 to replace a node and/or its descendents (or data within the nodes) of the target form 630 with a particular node and/or its descendents (or the data within the nodes) of the source form 632.
The replace annotator 707 is not the same as annotating the source form 632 with the delete annotator 706 and the insert annotator 702. The replace annotator 707 does not instruct the system 600 to delete a node or data from the target form 630 and then insert a node or data from the source from 632. Rather, the replace annotator 707 annotates the source form 632 with instructions to replace a portion of the target form 630 with the source form 632. This is important because, in some situations, deleting part of the target form 630 can cause the target form 630 to be invalid, based on the schema governing the target form 630. In some other situations, inserting and then deleting could also cause the target form 630 to be invalid if the schema governing the target form 630 does not allow insertion of the portion of the source form 632 while the portion of the target form 630 still exists.
The do-not-import annotator 708 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to refrain from importing a portion of the source form 632 into a portion of the target form 630. These instructions, for hierarchical forms, can direct the import engine 624 to refrain from importing a node (or its data) of the source form 632 into a node (or any node) of the target form 630.
The correspondence annotator 710 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to associate or correspond a portion of the source form 632 (such as data) to a portion of the target form 630. These instructions, for hierarchical forms, can direct the import engine 624 to correspond a set of nodes of the source form 632 to one or more nodes of the target form 630. The correspondence annotator 710 can be used in conjunction with other annotations, such as the insert, merge, delete, and replace annotations 702, 704, 706, and 707. By so doing, the system 600 can learn what part of the target form 630 corresponds to the part of the source form 632 having the insert, merge, delete, and replace annotations 702, 704, 706, and 707. The instruction within the correspondence annotation informs the system 600 as to what part or data of the target form 630 to insert the source data into, replace with the source data, merge the source data into, or delete, for instance.
The singular-correspondence annotator 712 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to associate or correspond a portion of the source form 632 (such as data) to a portion of the target form 630. These instructions, for hierarchical forms, can direct the import engine 624 to correspond a particular node of the source form 632 to a node of the target form 630. The singular-correspondence annotator 712 can be used in conjunction with other annotations, such as the insert, merge, delete, and replace annotations 702, 704, 706, and 707. By so doing, the system 600 can learn what part of the target form 630 corresponds to the part of the source form 632 having the insert, merge, delete, or replace annotations 702, 704, 706, and 707. The instruction within the singular-correspondence annotation informs the system 600 as to what part or data of the target form 630 to insert the source data into, replace with the source data, merge the source data into, or delete, for instance.
The ordering annotator 714 can be applied, as part of the transformation file 634, on the source form 632 to annotate that form. This annotation includes instructions to associate or correspond a portion of the source form 632 (such as data) before or after a portion of the target form 630. These instructions, for hierarchical forms, can direct the import engine 624 to associate a particular node of the source form 632 before or after a particular node of the target form 630. The ordering annotator 714 can be used in conjunction with other annotations, such as the insert annotation 702. By so doing, the system 600 can learn where in the target form 630 data of the source form 632 corresponds. The instruction within the ordering annotation informs the system 600 where in the target form 630 to insert the source data, for instance.
Exemplary Methods
Importing Generally
FIG. 8 shows a flow diagram 800 for importing data from one electronic form into another electronic form.
This and the following flow diagrams are illustrated as series of blocks representing operations or acts performed by the system 600. These diagrams may be implemented in any suitable hardware, software, firmware, or combination thereof. In the case of software and firmware, they represent sets of operations implemented as computer-executable instructions stored in memory and executable by one or more processors.
The method set forth in the flow diagram 800 will be described in part through the example set forth in FIGS. 1 to 5. The example of FIGS. 1 to 5 cover two substantially similar electronic forms, though the flow diagram 800 can be used with forms that are not substantially similar. The example of FIGS. 1 to 5 is used to aid the reader in understanding an implementation of the method, and is not intended to limit the applicability of the method.
FIGS. 1 through 5 set forth an example of what a user selecting the forms can see on the screen 604 of the display 602. These displays can be presented in parallel with the method shown in the flow diagram 800 being performed by the system 600.
In FIG. 1, for example, the system 600 displays an example of the target form 630, here the manager's report 102, which was chosen by a user. With this form shown, the user is enabled by the system 600 to select a form to merge into the target form 630 (here the manager's report 102).
Prior to or as part of block 802, the user selected the target form 630, in this example the manager's report 102 of FIG. 1. The target form 630 does not have to be shown to the user, but doing so can aid the user by assuring the user that the target form 630 is the one that the user intended to select. In one implementation, the target form 630 is selected by someone or something other than the user, such as the computer 608 selecting it based on various events occurring. In another implementation, the target form 630 is selected by a remote computer or a remote user.
At block 802, the system 600 receives a request to import data from the source form 632 to the target form 630. The system 600 can receive this request from a user through the user interface 628 and the user-input device 606. The system 600 can also receive the request remotely, such as from a remote computer or computer system, or from the computer 608 on occurrence of an event. These events include a certain amount of time elapsing, a date arising, the source form 632 being submitted after entry of data into the source form 632, and the like.
Continuing the ongoing example, FIG. 2 shows the user selecting to aggregate forms by selecting the aggregate forms selection shown at 204 of the options menu 202. After receiving this selection to aggregate forms, the system 600 presents various forms from which the user can choose, in this case those forms on the computer's 608 desktop (part of the memory 620).
To further enable the user's selection, the system 600 presents forms, shown in FIG. 3, one of which is shown as selected by the user as the target form 630. Here the screen shot 300 shows the user selecting the “Source.xml” form (at the reference numeral 302) to be the source form 632 (here the salesman's report 402). The system 600 can then display the source form 632.
FIG. 4 sets forth an example of the source form 632, here a “status report” by a salesman. The system 600 does not have to show the source form 632 selected by the user. In this example the system 600 does so to assure the user that the source form 632 selected was the form intended to be selected by the user.
FIGS. 1 to 4 show what the user can, in one implementation, see as part of the block 802.
Once the user has selected to aggregate the source form 632 into the target form 630 (shown in FIG. 3), the system 600 proceeds to block 804.
At block 804, the system 600 determines a schema governing the source form 632 (the “source schema”) and a schema governing the target form 630 (the “target schema”). This can be performed by the system 600 without user interaction.
The target schema can be determined in various ways. In one implementation, the schema of the target form 630 is known because the target form 630 is currently loaded on the computer 608 (in the memory 620). Thus, in this implementation the target schema is determined simply by loading the target form 630. In another implementation, the system 600 accesses files of or the target form 630 to determine the target schema.
The system 600 can determine the source schema in various ways. In each of these ways the system 600 can set a particular schema as being the source schema if the system 600 determines that the particular schema is capable of governing the source form 632.
In one implementation, the system 600 determines the source schema by comparing the source form 632 with the target schema. By so doing, the system 600 determines if the target schema is capable of governing the source form 632.
In another implementation, the system 600 compares the source form 632 with multiple or all schemas known by or accessible by the import engine 624. By so doing, the system 600 determines if a particular schema is capable of governing the source form 632.
In another implementation, the system 600 compares parts of the source form 632 against parts or all of various schemas known by or accessible by the import engine 624. By so doing, the system 600 determines what parts of the source form 632 are capable of being governed by one or more known or accessible schemas.
In another implementation, the system 600 determines the source schema by first comparing the source form 632 with the target schema as above and then proceeding as further described. If the source form 632 is not capable of being governed by the target schema, the system 600 then compares the source form 632 with known or accessible schemas, as above. If the source form 632 is not capable of being governed by these schemas, the system 600 then compares parts of the source form 632 with parts of all or various schemas known or accessible by the import engine 624, as above. In this way, the system 600 determines the source schema or one or more source schemas that are capable of governing parts of the source form 632.
In another implementation, the system 600 determines the source schema by analyzing the structure of the source form 632. This analysis can include determining what language the form is written in, such as XML. The system 600, by knowing the language of the form and its structure, can compare it to various schemas known to or accessible by the import engine 624. If a particular schema allows for the structure of the form, the system 600 can determine the source schema and/or the target schema. In this implementation, the import engine 624 accesses a list or other body of information that associates or otherwise maps the source schema to the transformation file 634 for later use.
In another implementation, the system 600 accesses a list of schemas associated with the target form 630. This list of schemas can include the target schema and other schemas. The system 600 compares each of these listed schemas with the source form 632. The system 600 can do so by comparing the structure of the source form 632 or by attempting to govern the source form 632 by the rules set forth in the schema. If the system 600 determines that a schema from the list is capable of governing the source form 632, the system 600 can set this schema as the source schema.
In one implementation, if the system 600 determines that more than one schema from the list is capable of governing the source form 632, the system can set the first schema found to be capable of governing the source form 632 as the source schema. The system 600 can also set the target schema as the source schema if the target schema is capable of governing the source form 632.
In yet another implementation, the system 600 accesses a file associated with the source form 632 or the target form 630. This file can include a reference to the schema, such as a hyperlink, or the schema itself.
In still another implementation, the system 600 uses information learned about the source form 632 to build a schema from available schemas or schema fragments that are capable of governing parts of the source form 632.
At block 806 the system 600 determines a transformation file. The system 600 can do so with the aid of the source schema, such as by the transformation file being associated with the source schema. The system 600, in one implementation, accesses a list of schemas and transformation files associated with each of the listed schemas. The system 600 can do so when one or more transformation files are pre-made and associated with the target form 630 and various potential source schemas.
In another implementation, the system 600 accesses a file or metadata (such as information in a header) associated with or in the source form 632 to determine the correct transformation file to use. This file or metadata can include a reference to the transformation file, such as a hyperlink, or the transformation file itself.
At block 808, if a transformation file is determined, the system 600 proceeds along the “Yes” path to block 810 and annotates the source form 632. If no transformation files are determined then the system 600 proceeds along the “No” path to block 812.
At block 812 the system 600 determines if the target form 630 and the source form 632 are similar or dissimilar. For hierarchically structured forms, the system 600 determines if the forms are similar based on the similarity of the source schema and the target schema. This can be performed by the system 600 without user interaction.
At block 814, if the source schema and the target schema are similar, the system 600 proceeds along the “Yes” path to block 816. In they are not similar, the system 600 proceeds along the “No” path to block 818.
At block 818 the system 600 rejects the request to import data.
If the system 600 proceeds to block 816 (without first performing block 810) and thus does not annotate the source form 632, the system 600 can still import data as part of block 816. This is discussed in greater detail below.
If the system 600 proceeds to block 810, the system 600 can annotate all of the source form 632, just those portions that are governed by the source schema where the source schema is dissimilar to the target schema, or somewhere in between. In one implementation, the system 600 annotates all or portions of the source schema by transforming the all or a portion by applying an appropriate transformation file (such as the transformation file 634). If the source schema is written in XML, the transformation file 634 is compatible, such as by being written in XSLT.
At block 810 the system 600, through the transformation engine 626, annotates the source form 632. The system 600 annotates the source form 632 to aid the import engine 624 in importing data.
The system 600 annotates the source form 632 to include instructions. These instructions are used by the import engine 624 to aid the import engine 624 in importing data from the source form 632 into the target form 630.
The system 600 can annotate the source form 632 without user interaction. The system 600 can also annotate the source form 632 whether or not the source schema and the target schema are substantially similar or dissimilar.
As shown in the flow diagram 800, the system 600 annotates the source form 632 when the source form 632 and the target form 630 are substantially dissimilar. When the source form 632 and the target form 630 are hierarchical, they are substantially dissimilar when the source schema and the target schema are substantially dissimilar.
The system 600, through the transformation engine 626, annotates the source form 632 by applying the transformation file 634 on the source form 632. The transformation file 634 can be pre-made and accessed as described herein.
Depending on how the transformation file 634 is built, when the transformation engine 626 applies the transformation file 634, certain portions or even all of the source form 632 is annotated. Thus, if a designer builds the transformation file 634 to annotate certain portions of the source form 632, only those portions are annotated by applying that transformation file 634. These annotations include instructions to the import engine 624, which it uses as set forth herein.
The annotations also have various effects. They can add instructions that inform the import engine 624 as to how to make data of the source form 632 compatible with the target form 630, for instance. They can also add instructions showing the import engine 624 where to import certain portions of the source form 632 into the target form 630, and the like.
In one implementation, these annotations include instructions related to the annotator-types 636 set forth in FIG. 7. The annotator-types 636 can include the insert annotator 702, the merge annotator 704, the delete annotator 706, the replace annotator 707, the do-not-import annotator 708, the correspondence annotator 710, the singular-correspondence annotator 712, and the ordering annotator 714.
In this implementation, annotations added to the source form 632 can include instructions to: insert a node or data within a node of the source form 632 as a child node to a parent node in the target form 630; merge attributes associated with data of the source form 632 with attributes associated with a node of the target form 630; replace one or more nodes of the target form 630 with a node of the source form 632; delete one or more nodes of the target form 630; not import a node, portion, or data of the source form 632 into the target form 630; associate a set of nodes of the target form 630 with one or more nodes associated with data of the source form 632; associate a particular node of a set of nodes of the target form 630 with a node or other data of the source form 632; and associate a node of the source form 632 to a particular point in an order of a set of nodes in the target form 630.
The annotators 710, 712, and 714 associate data (e.g., one or more nodes) of the source form 632 with data (e.g., one or more nodes) of or locations within the target form 630. Thus, they are used in conjunction with the insert, merge, delete, and replace annotators 702, 704, 706, and 707 when these annotators need to be associated with some node or location of the target form 630.
In one implementation, the source form 632 and the target form 630 include code written in XML. In this implementation, the transformation file 634 includes code written in XSLT.
At block 816, the importation engine 624 of the system 600 imports data from the source form 632 into the target form 630. The import engine 624 can import data from some or all of the data of the source form 632 into the target form 630. This data can include data within a node of a hierarchical source electronic form, all of the node of a hierarchical source electronic form, a portion of a hierarchical or non-hierarchical source electronic form, and the like. The data (or parts of the data) of the source form 632 can be presented to a user visually as the contents of a data-entry field, as a non-entry field, as text (including text presented with HTML), in a table, or in many other ways known in the art.
The import engine 624 can import data with or without annotations or use of a transformation file. How it imports data without annotations or use of the transformation file 634 is set forth in greater detail in FIG. 13 and its description. How it imports data with or without annotations or use of the transformation file 634 is set forth in greater detail in FIG. 9 and its description.
Importing Data
As stated above, the system 600 annotates the source form 632 at block 810 of FIG. 8. Following block 810 of FIG. 8, the system 600 (through the import engine 624) imports data from the source form 632 into the target form 630.
If the source form 632 includes annotations (as is the case when the system 600 performs the actions of block 810), the import engine 624 finds and then follows the annotations. As set forth above, these annotations include instructions that aid the import engine 624 in importing data. In one implementation, the import engine 624 imports data without user interaction, making importing data easy and simple for users.
FIG. 9 sets forth a flow diagram 900 for importing data from the source form 632 into the target form 630. The flow diagram 900 is an exemplary implementation of block 816 of FIG. 8 where the source form 632 and the target form 630 are hierarchical and arranged into nodes. The flow diagram 900 allows for importing of data with and without annotations.
As part of the flow diagram 900, the system 600 analyzes nodes of the source form 632. The system 600 can start with the first node (a root node) and proceed to analyze every node of the source form 632.
At block 902, the system 600 (primarily through the import engine 624), begins its analysis with the root node of the source form 632. As shown in the flow diagram 900, the system 600 analyzes this node and then proceeds to other nodes.
At block 904, the system 600 reads the current source node (which can be the root node or some other node) to find an annotation, if any. The system 600 can determine if the node includes an annotation by distinguishing the annotation from data in the node. In one implementation, annotations are labeled with a tag to distinguish them from the data of the source form 632. This tag can reference a private XML namespace readable by the import engine 624.
In some cases there is more than one annotation. In these cases, the system 600 reads all of the annotations before proceeding to block 906. As set forth below, some annotations, such as an annotation instructing the system to insert data, accompany another annotation instructing the system 600 as to where in the target form 630 the data should be inserted.
At block 906, if no annotation is found, the system 600 proceeds along the “No” path to block 908. If an annotation is found, the system 600 proceeds along the “Yes” path to block 910.
At block 908, the system 600 imports data (or ignores the data) based on various factors, but does so without use of annotations. Thus, while the import engine 624 can use instructions within annotations to aid it in importing data, all of the source form 632 does not have to be annotated. Some parts can be without annotations. In one implementation, the import engine 624 imports data without use of any annotations (described below). In others, the import engine 624 imports data for some parts that have annotations and some that do not, as shown in the flow diagram 900.
At block 910, the system 600 determines which annotation(s) were found in block 906.
As set forth below, the instructions that the import engine 624 follows can direct the import engine 624 as to what node of the source form 632 is to be imported, where in the target form 630 it is to be imported, and how it is to be imported. These instructions can also aid the import engine 624 in conforming the node of the source form 632 to the schema of the target form 630. They can also aid the import engine 624 in determining how much of the data of a source node is to be imported into the target form 630.
At blocks 912, 914, and 916, the system 600 follows the instructions to insert, delete, or replace data as set forth in the description of the insert annotator 702, the delete annotator 706, and the replace annotator 707 relating to FIG. 7. The system 600 follows the instructions to perform the action on the current source node.
For insertion and replacing of data, the instructions include reference to a node of the target form 630 showing where to insert or replace data in the target form 630 with data from the current source node. For both inserting and replacing data, this reference can include instructions from the correspondence annotator 710 or the singular-correspondence annotator 712, which set forth where in the target form 630 the insertion or replace is to be performed. This is set forth in greater detail as part of the discussion of FIG. 7.
For inserting data, the reference can also include instructions from the ordering annotator 714, which aids the system 600 in inserting the current source node at the beginning, end, or somewhere in the middle of a set of nodes of the target form 630. This is also described in greater detail in FIG. 7 and elsewhere herein.
Following blocks 912, 914, and 916, the system 600 proceeds to block 922.
At block 922, the system 600 continues on to perform the actions of block 904, but for a new source node of the source form 632. This new source node is the next node in the source form 632 that is not a child node of the source node just analyzed.
In one implementation, if the current source node has a child, the system 600 skips over the child and proceeds to analyze the next right sibling of the current source node. If the current source node does not have a next right sibling, the system 600 proceeds to analyze the next right sibling of the parent of the current source node, and so on. If there are no other nodes to be analyzed (some children are not analyzed as part of block 922), the system 600 stops analysis of nodes of the source form 632.
At blocks 918 and 920, the system 600 follows the instructions to merge data or ignore data. The system 600 can do so as set forth in the description of the merge annotator 704 or the do-no-import annotator 708 relating to FIG. 7. The system 600 follows the instructions to perform the action on the current source node. For merging data, the instructions include reference to a node of the target form 630 showing where to merge data in the target form 630 from the current source node. This reference can include instructions from the singular-correspondence annotator 712, as described in greater detail above.
Following blocks 918 or 920, the system 600 proceeds to block 924.
At block 924, the system 600 continues on to perform the actions of block 904, but for a new source node of the source form 632. This new source node is the next node in the source form 632, regardless of whether that node is a child of the source node just analyzed.
In one implementation, if the current source node has a child node, the system 600 proceeds to analyze the child. Otherwise, the system 600 proceeds to the next right sibling of the current source node or the next right sibling of the parent of the current source node, and so on up to the root node. If there are no other nodes to be analyzed (some children are not analyzed, based on block 922), the system 600 stops analysis of nodes of the source form 632.
Thus, by following the flow diagram 900, the system 600 can analyze and import data from (if appropriate) each node of the source form 632.
To aid in this discussion of importing data with annotations, the following exemplary forms are described.
FIG. 10 sets forth an exemplary screen shot 1000 showing an example of the target form 630, here an action report 1002. This action report 1002 contains data-entry fields, some of which contain data. The action report 1002 includes a reference 1004 showing that certain data-entry fields are “Action Items”, which can indicate presence of a node of the action report 1002 or otherwise. Data-entry fields of interest include: an action title field 1006; an action owner field 1008; an action priority field 1010; an action progress field 1012; and an action due date field 1014. The action report 1002 has a substantially dissimilar schema to the exemplary source form 632 shown in FIG. 11.
FIG. 11 sets forth an exemplary screen shot 1100 showing an example of the source form 632, here a team report 1102. The team report 1102 contains data-entry fields, some of which contain data. The team report 1102 includes a reference 1104 showing that certain data-entry fields are related to a “Send Team Update”. Within this area of the team report 1102, certain data-entry fields are shown. These include a team update manager field 1106, a team update priority field 1108, a team update status field 1110, and a team update due date field 1112. Further, the team report 1102 includes a reference 1114 showing that certain data-entry fields are related to a “Define Sales Goals”. Within this area of the team report 1102, certain data-entry fields are shown. These include a team goal owner field 1116, a team goal priority field 1118, a team goal status field 1120, and a team goal due date field 1122.
This team report 1102 is governed by a schema that is substantially dissimilar from the schema governing the action report 1002.
For the purposes of this example, the system 600 acts as shown in the blocks 802, 804, 806, 808, 810 and 816 of the flow diagram 800. At block 806, the system 600 determines that a transformation file exists for the schema of the team report 1102.
At block 810, the system 600 annotates the source form 632, here the team report 1102. The system 600 annotates the team report 1102 by applying the transformation file 634, in this case one in that is designed to annotate source electronic forms that can be governed, at least in part, by a source schema capable of governing the team report 1102. In this example, the transformation file 634 was designed to transform this source schema. At block 816, then, the system 600 imports data into the target form 630 (here the action report 1002).
FIG. 12 sets forth an exemplary screen shot 1200 showing an example of the target form 630, here an aggregate action report 1202, after data from the team report 1102 has been imported into the action report 1002. As shown in FIG. 12, the aggregate action report 1202 includes the fields shown in FIG. 10 (the action title field 1006, the action owner field 1008, the action priority field 1010, the action progress field 1012, and the action due date field 1014) as well as the imported data, some of which is shown in the fields of: the team update manager field 1106; the team update priority field 1108; the team update status field 1110; the team update due date field 1112; the team goal owner field 1116; the team goal priority field 1118; the team goal status field 1120; and the team goal due date field 1122.
These examples of the source form 632 and the target form 630 show that the import engine 624, following the instructions added by the transformation file 634, can import data (such as nodes) and information within it (such as text, numbers, and the like) into an electronic form having a substantially different schema. This example also shows that parts of the source form 632 can be imported, rather than all of it, based on the transformation file 634. Thus, a designer can, by building the transformation file 634 in particular ways, have parts of a source electronic form be imported into a target electronic form, leaving other parts not of significance to the designer un-imported.
Importing Data without Annotations
As set forth in the flow diagram 900, if a current source node of the source form 632 does not include an annotation, the system 600 proceeds to block 908, as mentioned above. The system 600 can follow the flow diagram 900 as one implementation of the block 816 of FIG. 8, even in cases where the source form 632 contains no annotations. In these cases the system 600 can follow blocks 902, 904, 906, and 908, without following the other blocks. In another implementation where the source form 632 contains no annotations, the system 600 follows the flow diagram 1300 for each portion of the source form 632 until completion.
FIG. 13 shows a flow diagram 1300 for importing data without an annotation. This flow diagram 1300 can be used by the system 600 for hierarchically arranged forms when a node of the source form 632 does not include an annotation or when no node of the source form 632 includes annotations, such as when the transformation file 634 has not been applied on the source form 632. The flow diagram 1300 is also an exemplary implementation of the block 908 of FIG. 9, though blocks 904 and 906 are performed after blocks 1330 and 1328 in this implementation.
At block 1302, the system 600 (primarily through the import engine 624) analyzes, one-at-a-time or otherwise, nodes of the source form 632 and nodes of the target form 630 in order to associate them. The system 600 can perform this analysis for electronic forms without the electronic forms containing annotations. The system 600 can also perform this analysis on un-annotated nodes of an otherwise annotated source electronic form or on nodes of a source electronic form that are similar to a target electronic form, even if parts of the source electronic form are not similar. In so doing, the system 600 can enable importing of data without a user needing to build or use the transformation file 634 for substantially similar nodes. It can do so even if many of the nodes if the source form 632 and the target form 630 are not substantially similar. In one implementation, the system 600 can associate nodes and import data without user interaction.
As part of block 1302, the system 600 can perform the actions set forth in blocks 1304, 1306, 1308, 1310, and 1312.
At block 1304, the system 600 determines if a schema fragment related to a particular node of the source form 632 (the “source node”) is substantially similar to a schema fragment related to one of the target form's 630 nodes (the “target node”). In this context, a schema fragment can be any part of the form's schema that shows, or any schema that aids the system 600 in determining, how a node of the form is or can be structured or is or can be governed. Thus, a schema fragment can be a construct based on the form's entire schema, a part of the form's entire schema, or other structural or governance information about a node of the form.
An example of how this can be performed with hierarchically organized electronic forms is set forth in the context of two electronic forms shown in FIG. 14 below. The example of FIG. 14 relates to the salesman's report 402 and the manager's report 102, each having substantially similar schemas. The example of FIG. 14 is used to aid the reader in understanding an implementation of the method shown in the flow diagram 1300, and is not intended to limit the applicability of the method.
FIG. 14 sets forth a simple, graphical example of how two electronic forms that are hierarchically structured can be organized into nodes. The source form 632 in this example is a hierarchically arranged, simplified, and structurally (though not, for purposes of the discussion relating to FIG. 13, schematically) reorganized version of the salesman's report 402 of FIG. 4, referenced and referred to as a salesman's structure 1400. It is reorganized by where in the salesman's report 402 the data and their corresponding nodes reside. For instance, in FIG. 4 the salesman's summary 418 is presented prior to the salesman's this period data-entry fields 426, 428, and 430 in the salesman's status report 402. In the salesman's structure 1400, however, the nodes related to the salesman's summary 418 (a source summary parent node 1414 and a source summary node 1416) are arranged after nodes related to the this period data-entry fields 426, 428, and 430.
The target form 630 in this example is a hierarchically arranged and simplified version of the manager's report 102 of FIG. 1, referenced and referred to as a manager's structure 1402.
The structure 1400 includes a source root node 1404, a source this period node 1406, a mu node 1408, a nu node 1410, a xi node 1412, the source summary parent node 1414, the source summary node 1416, a source last period node 1418, an alpha node 1420, a beta node 1422, and a gamma node 1424.
The structure 1402 includes a target root node 1426, a target summary parent node 1428, a target summary node 1430, a summary last period node 1432, an uno node 1434, a dos node 1436, a target this period node 1438, a red node 1440, a green node 1442, a blue node 1444, a yellow node 1446, and a purple node 1448.
With these structures set forth, the discussion returns to the flow diagram 1300.
At block 1306, the system 600 proceeds along the “No” path to block 1308 if the schema fragment of the source node is not substantially similar to a schema fragment of the target node that was just analyzed. If they are substantially similar, the system 600 proceeds along the “Yes” path to block 1310.
As shown by example below, if one target node is not substantially similar to the source node being analyzed, the system 600 can proceed to analyze every node of the target form 630 until the system 600 finds one that is substantially similar or until all of the nodes of the target form 630 have been analyzed.
At block 1308, if the system 600 has analyzed every target node (every node of the target form 630) against the source node (using each node's schema fragment) and has not found a target node that is substantially similar, the system 600 proceeds to block 1312, after which it proceeds to block 1304 and analyzes a new source node. If not, it proceeds directly back to block 1304.
At block 1312, the system 600 does not associate the source node with any target node. Also, at block 1312 the system 600 can ignore the source node and not import data from the source node.
Returning to the discussion of block 1302, using the structures of FIG. 14 as examples, assume that the system 600 first analyzes the mu node 1408 (through analyzing its schema fragment). Assume also that the system 600 analyzes nodes of the target form 630 that contain numerical or textual data in descending order. By so doing, the system 600 first analyzes the mu node 1408 and the target summary node 1430, shown by a dashed line. Each line, which will be discussed in turn, represents an attempt by the system 600 to determine that the nodes connected by the lines are substantially similar. The dashed lines represent a determination by the system 600 that the nodes are not substantially similar. Solid lines represent a determination by the system 600 that the nodes are substantially similar, and thus can be associated with each other.
Thus, continuing the example, the system 600, as part of block 1304, determines that the schema fragment of the mu node 1408 and the schema fragment of the target summary node 1430 are not substantially similar. The system 600 then proceeds to block 1308, where the system 600 then proceeds back to block 1304 because all of the nodes of the target form 630 have not been found to not be substantially similar to the mu node 1408.
At block 1304, the system 600 determines that the schema fragment of the mu node 1408 and the schema fragment of the uno node 1434 are not substantially similar. Thus, the system 600 again returns to block 1304.
Likewise, at block 1304 the system 600 determines that the schema fragment of the mu node 1408 and the schema fragment of the dos node 1436 are not substantially similar. Thus, the system 600 again returns to block 1304.
Again at block 1304, the system 600 determines the similarity of the schema fragment of the mu node 1408 with another node of the manager's structure 1402. Here, though, the system 600 determines that the schema fragment of the mu node 1408 and the schema fragment of the red node 1440 are substantially similar. As such, the system 600 proceeds to block 1310.
At block 1310, the system 600 maps the source node of the source form 632 to the target node of the target form 630. In cases where no node of the target form 630 was substantially similar, the system 600 can cease analysis of the source node and proceed to another source node (another node of the source form 632) until all substantially similar nodes are found before proceeding to block 1314. In another implementation, the system 600 proceeds to block 1314 and on to import data based on the current source node and then return to block 1304 later, if needed, as set forth in the flow diagram 1300 (see blocks 1328 and 1330).
In the ongoing example, the system 600 maps the mu node 1408 to the red node 1440. In one implementation, the system 600 maps nodes using XPath expressions. An XPath expression is a way of describing the location of a certain node or of a set of nodes in an XML document. The description is made by specifying the full (starting from the root) or relative (starting from a given node) path(s) to the node or the set of nodes. More on XPath expressions generally can be found at http://www.w3.org/TR/xpath.
The system 600 can then continue on to block 1314 or back to 1304 until the nodes of the source form 632 have been analyzed. In the ongoing example, the system 600 returns to block 1304.
By further way of example, assume that the system 600, once the mu node 1408 has been mapped to the red node 1440 at block 1310, proceeds to analyze the nu node 1410 and the xi node 1412 and also maps them to the red node 1440 (not shown with lines).
Continuing this example, the system 600 analyzes the source summary node 1416 and the target summary node 1430, shown by a solid line. At block 1304, the system 600 determines that the schema fragment of the source summary node 1416 and the target summary node 1430 are substantially similar. As such, the system 600 proceeds to block 1310 to map these nodes together.
Also by further way of example, assume that the system 600 then proceeds to analyze the alpha node 1420 of the structure 1400.
Thus, continuing the example, the system 600, as part of block 1304, determines that the schema fragment of the alpha node 1420 and the schema fragment of the target summary node 1430 are not substantially similar. The system 600 then proceeds to block 1308, where the system 600 then proceeds back to block 1304 because all of the nodes of the target form 630 have not been found to not be substantially similar to the alpha node 1420.
Returning to block 1304, the system 600 determines that the schema fragment of the alpha node 1420 and the schema fragment of the uno node 1434 are substantially similar. As such, the system 600 proceeds to block 1310 to map these nodes together.
At block 1314 the system 600 determines the bounding behavior of the target node's parent node. The system 600 determines the bounding behavior from the target schema or the target node's or target node's parent's schema fragment. The bounding behavior gives the system 600 information about how and what kind of importation can be appropriate.
At block 1316, if the target node's parent node is unbounded or bound to a number greater than one, the system 600 proceeds along the “Yes” path to block 1318. If not, the system 600 proceeds along the “No” path to block 1320.
At block 1318, the system 600 inserts the source node's data as a sibling node to the target node. In FIGS. 5 and 14, various examples of this can be seen. In FIG. 5, the data associated with some of the data-entry fields of the salesman's report 402 are represented to be inserted as siblings. While not shown, the nodes containing the data shown in the data-entry fields are inserted as sibling nodes. FIG. 5 shows insertion, represented as a new entry or data-entry field, of the salesman's last period fields 420, 422, and 424 and the salesman's this period fields 426, 428, and 430.
FIG. 14 shows six different nodes of the salesman's structure 1400, each of which can be represented as data-entry fields in FIG. 4 and are inserted as sibling nodes. Each of these source nodes, the mu node 1408, the nu node 1410, the xi node 1412, the alpha node 1420, the beta node 1422, and the gamma node 1424, have been mapped to a substantially similar target node. The mu node 1408, the nu node 1410, and the xi node 1412, have been mapped to the red node 1440. Thus, the target node's parent node is the manager's this period node 1438.
Assume for this example that the manager's this period node 1438 is unbounded. Thus, at block 1318, the system 600 inserts as sibling nodes to the red node 1440 the mu node 1408, the nu node 1410, and the xi node 1412. An example of insertion is shown in FIG. 5 by the additional data-entry fields with data being added to the manager's report 102 (shown in the aggregate manager's report 502).
Likewise, the alpha node 1420, the beta node 1422, and the gamma node 1424 have been mapped to the uno node 1434. Also this example assumes that the manager's last period node 1432 is unbounded, and thus can contain an unlimited number of child nodes. Thus, at block 1318, the system 600 inserts as sibling nodes to the uno node 1434 the alpha node 1420, the beta node 1422, and the gamma node 1424. An example of insertion is shown in FIG. 5 by the additional data-entry fields with data being added to the manager's report 102 (shown in the aggregate manager's report 502).
After block 1318, the system 600 proceeds to block 1328.
At block 1328, the system 600 continues on to perform the actions of block 1302, but for a new source node of the source form 632 (unless the system 600 is performing the flow diagram 1300 as an implementation of block 908 of the flow diagram 900, in which case the system 600 continues to block 904 with the new source node). This new source node is the next node in the source form 632 that is not a child node of the source node just analyzed.
In one implementation, if the current source node has a child, the system 600 skips over the child and proceeds to analyze the next right sibling of the current source node. If the current source node does not have a next right sibling, the system 600 proceeds to analyze the next right sibling of the parent of the current source node, and so on. If there are no other nodes to be analyzed (some children are not analyzed as part of block 1328), the system 600 stops analysis of the source form 632.
At block 1320, if the target node does not include rich text, the system 600 proceeds along the “No” path to block 1322. If it does, the system 600 proceeds along the “Yes” path to block 1324.
At block 1322, the system 600 merges data within the source node into the target node. This data can include attributes or top level parts of the source node's data. As set forth in the following example, this merging can include merging of attributes from the source node into the target node. Assume, for instance, that the target node is:

    
    
        <element a1=“a1 data” a2=“a2 data”>original element data</element>

And the source node is:

        <element a1=“new a1 data” a3=“new a3 data>new element data</element>

Then, the aggregated target node will include the attributes of the source node, as shown here:

        <element a1=“new a1 data” a2=“a2 data” a3=“new a3 data>original element data</element>
    
    


At block 1330, the system 600 continues on to perform the actions of block 1302, but for a new source node of the source form 632 (unless the system 600 is performing the flow diagram 1300 as an implementation of block 908 of the flow diagram 900, in which case the system 600 continues to block 904 with the new source node). This new source node is the next node in the source form 632, regardless of whether that node is a child of the source node just analyzed.
In one implementation, if the current source node has a child node, the system 600 proceeds to analyze the child. Otherwise, the system 600 proceeds to the next right sibling of the current source node or the next right sibling of the parent of the current source node, and so on up to the root node. If there are no other nodes to be analyzed (some children are not analyzed, based on block 1328), the system 600 stops analysis of the source form 632.
At block 1324, if the target node contains rich text, the system 600 appends data of the source node to data of the target node.
FIG. 5 shows an example of data from a source node being appended to a target node. In FIG. 5, data shown in the salesman's summary field 418 is appended to summary field 118 of the manager's report 102. This appending (also called a “concatenation”) is shown with rich text of the data of the source node added into the data-entry field, seen in FIG. 5 at reference 504.
Continuing the above example, the source summary node 1416 is associated with (via mapping, in this case) the target summary node 1430. Assume, for this example, that the target summary parent 1428, which is the parent of the target summary node 1430, is bounded to one occurrence of a child node. The only child node allowed is the target summary node 1430. The system 600, using this information, will not attempt to insert the source summary node 1416 into the target form 630 (such as by inserting it as a sibling node to the target summary node 1430). Instead, the system 600 appends rich text data within the source summary node 1416 into the target summary node 1430.
After completing block 1324, the system 600 proceeds to block 1328, described above.
A Computer System
FIG. 15 shows an exemplary computer system that can be used to implement the processes described herein. Computer 1542 includes one or more processors or processing units 1544, a system memory 1546, and a bus 1548 that couples various system components including the system memory 1546 to processors 1544. The bus 1548 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. The system memory 1546 includes read only memory (ROM) 1550 and random access memory (RAM) 1552. A basic input/output system (BIOS) 1554, containing the basic routines that help to transfer information between elements within computer 1542, such as during start-up, is stored in ROM 1550.
Computer 1542 further includes a hard disk drive 1556 for reading from and writing to a hard disk (not shown), a magnetic disk drive 1558 for reading from and writing to a removable magnetic disk 1560, and an optical disk drive 1562 for reading from or writing to a removable optical disk 1564 such as a CD ROM or other optical media. The hard disk drive 1556, magnetic disk drive 1558, and optical disk drive 1562 are connected to the bus 1548 by an SCSI interface 1566 or some other appropriate interface. The drives and their associated computer-readable media provide nonvolatile storage of computer-readable instructions, data structures, program modules and other data for computer 1542. Although the exemplary environment described herein employs a hard disk, a removable magnetic disk 1560 and a removable optical disk 1564, it should be appreciated by those skilled in the art that other types of computer-readable media which can store data that is accessible by a computer, such as magnetic cassettes, flash memory cards, digital video disks, random access memories (RAMs), read only memories (ROMs), and the like, may also be used in the exemplary operating environment.
A number of program modules may be stored on the hard disk 1556, magnetic disk 1560, optical disk 1564, ROM 1550, or RAM 1552, including an operating system 1570, one or more application programs 1572 (such as the import engine 624), other program modules 1574, and program data 1576. A user may enter commands and information into computer 1542 through input devices such as a keyboard 1578 and a pointing device 1580. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are connected to the processing unit 1544 through an interface 1582 that is coupled to the bus 1548. A monitor 1584 or other type of display device is also connected to the bus 1548 via an interface, such as a video adapter 1586. In addition to the monitor, personal computers typically include other peripheral output devices (not shown) such as speakers and printers.
Computer 1542 commonly operates in a networked environment using logical connections to one or more remote computers, such as a remote computer 1588. The remote computer 1588 may be another personal computer, a server, a router, a network PC, a peer device or other common network node, and typically includes many or all of the elements described above relative to computer 1542. The logical connections depicted in FIG. 15 include a local area network (LAN) 1590 and a wide area network (WAN) 1592. Such networking environments are commonplace in offices, enterprise-wide computer networks, intranets, and the Internet.
When used in a LAN networking environment, computer 1542 is connected to the local network through a network interface or adapter 1594. When used in a WAN networking environment, computer 1542 typically includes a modem 1596 or other means for establishing communications over the wide area network 1592, such as the Internet. The modem 1596, which may be internal or external, is connected to the bus 1548 via a serial port interface 1568. In a networked environment, program modules depicted relative to the personal computer 1542, or portions thereof, may be stored in the remote memory storage device. It will be appreciated that the network connections shown are exemplary and other means of establishing a communications link between the computers may be used.
Generally, the data processors of computer 1542 are programmed by means of instructions stored at different times in the various computer-readable storage media of the computer. Programs and operating systems are typically distributed, for example, on floppy disks or CD-ROMs. From there, they are installed or loaded into the secondary memory of a computer. At execution, they are loaded at least partially into the computer's primary electronic memory. The invention described herein includes these and other various types of computer-readable storage media when such media contain instructions or programs for implementing the blocks described below in conjunction with a microprocessor or other data processor. The invention also includes the computer itself when programmed according to the methods and techniques described herein.
For purposes of illustration, programs and other executable program components such as the operating system are illustrated herein as discrete blocks, although it is recognized that such programs and components reside at various times in different storage components of the computer, and are executed by the data processor(s) of the computer.
CONCLUSION
The above-described system and method enables a user to quickly and easily import data from one electronic form into another electronic form. Although the invention has been described in language specific to structural features and/or methodological acts, it is to be understood that the invention defined in the appended claims is not necessarily limited to the specific features or acts described. Rather, the specific features and acts are disclosed as exemplary forms of implementing the claimed invention.

## Claims

1. A method comprising:
applying a transformation file on a plurality of first electronic forms written in a markup language, the plurality of first electronic forms governed by a same schema, the applying the transformation file on the plurality of first electronic forms to annotate the plurality of first electronic forms with instructions; and
importing data included within the plurality of first electronic forms into a plurality of second electronic forms, the plurality of second electronic forms written in the markup language, the importing based on the instructions, the instructions comprising instructions to insert, delete, or replace one or more nodes in the plurality of second electronic forms.

2. The method of claim 1, wherein the applying is performed without user interaction.

3. The method of claim 1, wherein the importing is performed without user interaction.

4. The method of claim 1, wherein the first electronic forms are governed by said same schema having first schema fragments and the second electronic forms are governed by a second schema that includes a second schema fragment that is capable of association with the first schema fragment.

5. The method of claim 1, wherein the first electronic forms are governed by said same schema having a first root node and the second electronic forms are governed by a second schema having a second root node, the said schema and the second schema having the first root node and the second root node capable of association but not having non-root nodes capable of association.

6. The method of claim 1, wherein the importing further comprises accessing and executing code modules associated with the instructions.

7. The method of claim 1, wherein the applying comprises annotating each of the first electronic forms with an instruction to insert the data as a child node to a parent node in each of the second electronic forms.

8. The method of claim 1, wherein the applying comprises annotating one of the first electronic forms with an instruction to merge attributes associated with the data with attributes associated with a node of a respective one of the second electronic forms.

9. The method of claim 1, wherein the applying comprises annotating one of the first electronic forms with an instruction to replace one or more nodes of a respective one of the second electronic forms with a node associated with the data.

10. The method of claim 1, wherein the applying comprises annotating one of the first electronic forms with an instruction to delete one or more nodes of a respective one of the second electronic forms.

11. The method of claim 1, wherein the applying comprises annotating one of the first electronic forms with an instruction to not import the data into a respective one of the second electronic forms.

12. The method of claim 1, wherein the applying comprises annotating one of the first electronic forms with an instruction to associate a set of nodes of a respective one of the second electronic forms with one or more nodes associated with the data of the one of the first electronic forms.

13. The method of claim 1, wherein the applying comprises annotating one of the first electronic forms with an instruction to associate a particular node of a set of nodes of a respective second electronic form of the second electronic forms with a node associated with the data of the one of the first electronic forms.

14. The method of claim 1, wherein the applying comprises annotating the one of the first electronic forms with an instruction to insert a node associated with the data at a particular point in an order of a set of nodes in a respective on of the second electronic forms.

15. The method of claim 1, wherein the data is written in XML.

16. The method of claim 1, wherein the first electronic forms and the second electronic forms are written in part in XML.

17. The method of claim 1, wherein the transformation file is written in part in XSLT.

18. A system comprising:
one or more processors; and
one or more computer-readable storage media having instructions thereon that, when executed by the one or more processors, cause the processors to perform acts comprising:
applying a transformation file on a plurality of first electronic forms, the plurality of first electronic forms written in a markup language, the plurality of first electronic forms governed by a same schema, the applying to annotate the plurality of first electronic forms with instructions; and
importing data included within the plurality of first electronic forms into a plurality of second electronic forms, the plurality of second electronic forms written in the markup language, the importing based on the instructions, the instructions comprising instructions to insert, delete, or replace one or more nodes in the plurality of second electronic forms.

19. The system of claim 18, wherein the applying annotating the first electronic form with an instruction comprising one or more of:
inserting the data as a child node to a parent node in the second electronic form;
merging attributes associated with the data with attributes associated with a node of the second electronic form;
replacing one or more nodes of the second electronic form with a node associated with the data;
deleting one or more nodes of the second electronic form;
not importing the data into the second electronic form;
associating a set of nodes of the second electronic form with one or more nodes associated with the data of the first electronic form; or
inserting a node associated with the data at a particular point in an order of a set of nodes in the second electronic form.

20. A system comprising:
one or more processors;
one or more computer-readable storage media having instructions thereon that, when executed by the one or more processors, cause the one or more processors to perform acts comprising:
applying a transformation file on a plurality of first electronic forms, the plurality of first electronic forms governed by a same schema, the applying to annotate the plurality of first electronic forms with instructions, the first electronic forms written in XML and the transformation file written in XSLT; and
importing data included within the plurality of first electronic forms into a plurality of second electronic forms, the plurality of second electronic forms written in XML, the importing based on the instructions, the instructions comprising instructions to insert, delete, or replace one or more nodes in the plurality of second electronic forms.