Electronic commerce between businesses has gained substantial momentum. Electronic marketplaces and XML or similar documents have begun to replace traditional EDI formats for commerce-related documents. Still, many businesses, particularly small and medium sized businesses, have not adopted automated EDI or XML transaction processing. It remains easier for large trading partners to generate XML or similar documents than it is for small to medium sized businesses to adopt the technology needed to processing them. In addition, a full scale conversion to EDI or XML transaction processing may involve far more documents than a small to medium sized business can practically convert, either within a workable timeframe or a reasonable budget.
Therefore, it is desirable to introduce methods and devices that allow users to read and understand XML and similar documents generated by their trading partners without extensive programming. It is also desirable to introduce methods and devices that are extensible, that can display in a meaningful format field types that are not referenced in output formats.
The present invention includes a method of providing users with formatted access to XML and similar documents received from trading partners using a general purpose viewer or browser. Particular aspects of the present invention are described in the claims, specification and drawings.
The following detailed description is made with reference to the figures. Preferred embodiments are described to illustrate the present invention, not to limit its scope, which is defined by the claims. Those of ordinary skill in the art will recognize a variety of equivalent variations on the description that follows.
The document sent by the entity includes tagged fields. A sample document having two different types of tagged fields is illustrated in
Referring to
Two trading partners 360, 380 are illustrated. Participants on behalf of the trading partners 361, 381 may be systems or human beings. Referring again to
On the server 110 of
One schema for persistently storing documents is illustrated by
The service 112 may give notice to the user 150 of receipt of the document by messaging, posting or any other practical means. One or more users may be given notice, based on the identity of the sending entity, the identity of the receiving entity or the document type. One syntax for subscription by a user is Subscription=sender ID.recipient ID.document type. To receive all Order documents from a particular sending entity, a user could subscribe as follows: Subscription=S1234.*.Order. This subscription would cause the service 112 to notify the user 150 of receipt of order type documents from sending entity S1234. Security features of a system would, of course, restrict access by the user 150 those receiving entities for which the user was authorized. Notice may be given by messaging, such as e-mail or a Lotus Notes messaging protocol. A message may include a subject, such as, “Five new documents received,” header text generally stating that new documents have been received or that old documents remain to be viewed. The e-mail may further include body text providing the date, number and sending parties' identities for documents received. The body text may further provide detail regarding individual documents received, such as the document type, sender identity and date or time of receipt. A footer may identify the location for viewing the document, such as by a click through URL. Alternatively, notice may be given by posting at a location to which the user has access. A combination of the two may be used, such as posting to location from which e-mail notices are generated if the user does not promptly access the list. E-mails based on the status of accessing a posted notice may be sent periodically and may include increasingly strong wording or additional addressees, based on the type and/or aging of the received document.
In interface by which the user may access a stored document is illustrated in
The processing of user requests to view a document can be understood by referring again to
One aspect of the present invention is the selection logic 144 to select a tagged fields format for display sheet to apply to a particular document. As a shorthand, a tagged fields format for display sheet may be referred to as a stylesheet. A stylesheet can be applied to format a document for manual viewing either one it is received or in response to a user request. Formatting a document when it is received requires automatic selection of tagged fields format for display sheet and storage of the transformed document, as well as original document. The transformed document can take a form of an HTML document, PostScript document, and an ASCII document or any other view will format. The transformed document can be stored the same persistent storage 114 as the original document or in other storage. Alternatively, formatting can be applied for manual viewing in response to user request. In this case, selection of a tagged fields format for display sheet can be automatic or can present a tailored list of choices to user for user selection.
Automatic selection of style sheets may be supported by the system of default in progressively more customized style sheets. A hierarchical, rule based selection may be used. For instance, one or more default style sheets may be provided at level 0. Alternative style sheets of level 0 may be distinguished based on the amount of data received in an incoming document. For instance, style sheets may be provided for incoming documents smaller and larger than 25,600 bytes. Style sheets at level below 0 may be customized based on a number of attributes associated with a document. The attributes may include document type, marketplace identity for the marketplace from which the document originated, portal identity for further identification when a marketplace is hosted by more than one portal, sender identity for the trading partner that sent the document, receiver ID for the trading partner and to whom the document is addressed, and status of reviewing the document or its attachments. A further attribute which may be useful in selecting a stylesheet is an identifier for the schema used to understand the types of tagged fields appearing in the document, if the tagged fields are compliant with a schema. One hierarchy of levels which can be used to select a stylesheet is:
A stylesheet can be selected using a tagged field of the document or a property associated with the document or user. A user can combine tagged field and property information in any way to create a stylesheet selection rule. Selection logic can, for example, load all of the default and user created rules and apply them at runtime, substituting values of tagged fields and properties for keywords appearing in rules. Alternative decision rules can be applied. For instance, a stylesheet may be selected on the basis of which rule level it satisfies, selecting the stylesheet which is most customized to the substituted values. Applying this procedure, style sheets could be stored in the database or a simple directory tree. The directory tree might be structured as follows:
Applying the directory tree structure such as this, the selection logic could construct directory paths and test to determine whether a tagged field format for display sheet exists in each of the constructed paths. Alternatively, rules could be selected on the basis that the rule with the most matches wins. The following table may reside be used to track style sheets:
The selection logic can query the table based on the DocumentType and iterate through the result list. As it iterates through the result list, it will can rank each of the result list that qualified. A record that does not qualify will be dropped from the ranking list. The record with the highest ranking number will be the one get selected. For instance, for a PO document was sent to XYZ from ABC. The selector will have the following result list:
Applying this approach, the selection logic would select Rule ID #1 since it has higher ranking. In another instance, consider a Pizza Document was sent by PizzaHut in a NewYork GMP. The selector will have the following result list:
The selection logic would select Rule ID #11 since it has the high-ranking. The selection system need not be hierarchical in order to supply default in alternative rules. Combinations of tagged field values and document properties may be used in any way practical to select an applicable stylesheet or the best applicable stylesheet.
An individual user selects or is assigned to a locale. A locale is a more general concept than a language, because the same language (e.g., English) can be spoken in distinctly different ways (e.g., British and American English). Data received from trading partner may be transformed for display based on the locale or language of the user. One aspect of the present invention is that selection of one from a plurality of tagged field format for display sheets may correspond to localization of the display to match the language or locale of the user. Organization and locale can be combined to select a tagged field format for display sheet; they may be combined with the content of one or more tagged fields or properties of the document. A particular tagged field format for display sheet or one or more modules supporting that particular sheet can be stored on disk or remote storage until needed. One aspect of the present invention is loading the selected tagged field format for display sheet or modules supporting it from disk or remote storage after selecting it.
Many aspects of the present invention are further illustrated in the following code. This code includes a hierarchy of included files for a default stylesheet, as follows:
The default stylesheet further includes a feature to allow outlining features of collapsing and revealing detail.
Those of skill in the relevant arts will find the code in the accompanying source code appendix, which is incorporated by reference, to be instructive in carrying out aspects of the invention which have been presented more generally.
The methods illustrated above can be extended by services beyond viewing a document. A document which can be read also can be printed. Print formats can be selected by rules, using the most specific format available: if a print format is available for a combination of trading partner and document type, use that format; if a print format is available for a document type, use that format; if a base format is available for a portal war receiving party, use that format; and, in all cases, a default print format is available to use.
A document map repository may support a copying service, to transform a document from one document to another or from one type of document to another. A new document can be prepared using old documents template, by copying the old document and editing it. A new type of document can be prepared from an old document using document mapping supported by a schema. Static maps may be stored in the database 116 which map tagged fields from one document type to another document type. Copy functionality may, for instance, translate a purchase order into an acceptance or shipping confirmation.
Reply functionality may be supported as a variation on copy functionality, with addressing added. A simple reply may include an unedited version of the document received. A more elaborate reply may permit a user to edit the document received before responding. It may or may not track the changes made. A yet more elaborate reply may provide a user with a variety of transformations which are standard in replying to a particular type of document.
Export functionality may be provided to map one document type to another for editing outside the system. A simple export also may be provided for transforming a document into a tax or were processor format.
Type and send functionality may be provided from either templates of documents used by an organization or from a copy or transformation of a document selected by the user. Preferably, a JavaScript module is provided to update the values of tagged fields based on edits made by the user at the browser. The JavaScript technology described above is readily adapted to carry out this action. An editing functionality may be extended by a verification function, which would take codes entered by the user and verify that they translate into valid addressees, etc., or it could for simply display the translation of the codes. An editing function may be further extended with pull-down selection menus for addresses, using either a dictionary or a list of recently used values.
Corollary to a template facility is a draft document facility. The interface in
Another improvement to the XSLT programming language is conditional loading of modules of an XSLT style sheet. This improvement includes defining a conditional syntax for including an XSLT module from disk in an XSLT style sheet, parsing the XSLT style sheet utilizing the conditional syntax, determining whether a condition specified in the conditional syntax succeeds or fails, and loading the XSLT module from disk if the condition succeeds. This is distinct from and in addition to the selection of a stylesheet described above.
A variable containing a URI value can be used in conjunction with the system in
Many combinations of features discussed above can be combined in useful combinations. Some of the useful combinations are set forth in the claims below.
While the preceding examples are cast in terms of a method, devices and systems employing this method are easily understood. A magnetic memory containing a program capable of practicing the claimed method is one such device. A computer system having memory loaded with a program practicing the claimed method is another such device.
While the present invention is disclosed by reference to the preferred embodiments and examples detailed above, it is understood that these examples are intended in an illustrative rather than in a limiting sense. It is contemplated that modifications and combinations will readily occur to those skilled in the art, which modifications and combinations will be within the spirit of the invention and the scope of the following claims.
This application is a continuation application of U.S. patent application Ser. No. 12/190,493 filed 12 Aug. 2008, entitled “METHOD AND APPARATUS FOR VIEWING ELECTRONIC COMMERCE-RELATED DOCUMENTS,” issuing as U.S. Pat. No. 8,561,022 on 15 Oct. 2013 which is a divisional application of U.S. Patent Application Serial No. 09/794,302 filed 27 February 2001, entitled “METHOD AND APPARATUS FOR VIEWING ELECTRONIC COMMERCE-RELATED DOCUMENTS,” now U.S. Pat. No. 7,415,669, issued on 19 Aug. 2008. These applications are incorporated herein by reference.
Number | Date | Country | |
---|---|---|---|
Parent | 09794302 | Feb 2001 | US |
Child | 12190493 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12190493 | Aug 2008 | US |
Child | 14054777 | US |