A portion of the disclosure of this patent document contains material that is subject to copyright protection. The copyright owner has no objection to the facsimile reproduction by anyone of the patent document or the patent disclosure, as it appears in the Patent and Trademark Office patent file or records, but otherwise reserves all copyright rights.
The invention relates to apparatus and process for generating content.
The Internet is becoming an increasingly popular medium for communicating and publishing widely accessible documents. A network of networks, the Internet transfers information using a common protocol that tells computers connected to the network how to locate and exchange files with one another. Documents communicated over the Internet generally conform to a Hyper Text Markup Language (HTML) that a World-Wide-Web (WWW or Web) browser can translate and display. Once posted on a Web server, these documents or compilations of pages can be retrieved and viewed by anyone who has access to the Internet.
Each document is essentially a collection of HTML codes or tags which provide the document with a general structure of a head and a body, as well as headings, format controls, forms, tables, and one or more element types. A basic familiarity with HTML codes is only one aspect in the process of creating HTML documents. Another issue relates to the process of editing such documents. Although a conventional text editor or word processor can be used to add HTML markups to the document, such method of composing and editing the HTML document is quite tedious as the process does not allow a designer to see the document as actually displayed by the browser. Without visual feedback, the process of composing and editing the HTML document can be error-prone and inefficient. Moreover, when the HTML document contains elements other than the usual text and text formatting codes, the process of composing and editing the HTML document can be challenging. For example, if the image elements were embedded in the document, the conventional text editor or word processor would reference each image using only its access path and file name. Consequently, the designer has to be more careful and more exact in selecting the elements, as the designer cannot visually verify that the correct image is being edited. Hence, the difficulty in generating the desired HTML document is increased when non-text elements are embedded in the document.
The difficulty is particularly accentuated for the development of web sites in which the content or interaction of the web site changes based on designer or environmental information. Examples of such sites include on-line catalogs, news sites, or e-commerce sites.
Typically, to support dynamic web sites, a web server called a dynamic content server processes pages to insert or replace content at run-time. Examples include Microsoft's Internet Information Server (IIS), which processes Active Server Pages (ASP).
Currently, web sites are generally authored in two steps:
(1) A designer creates the look and feel of the web site by creating a mock-up of the site in Photoshop.
(2) The Photoshop image is then handed to programmers who hand-code the web pages in HTML and script code to be executed by a content server.
This two-step process is caused by the fact that WYSIWYG HTML editors are insufficiently expressive to show what the designer wants, and; that existing content specification systems generally imbed processing instructions directly within the HTML, making it hard for them to co-exist with WYSIWYG HTML editors. An example of these processing instructions is exemplified by the following Active Server Page (ASP) code
This two-step process is inefficient since the page is in effect designed twice: once in Photoshop, and once in HTML file. Moreover, the designer cannot go back and make changes to the HTML file, because the ASP code cannot be easily read back into a WYSIWYG editor since ASP is a language-independent framework designed by Microsoft for efficient coding of server-side scripts that are executed by a Web server in response to a user's request for a URL. ASP scripts are similar to other server-side scripting such as Perl and Python. Not surprisingly, although many people can design web pages, only a few designers can compose web sites with ease.
The system and techniques specify content insertions based on elements, each with a representative content. The format, style, and layout of the representative content of the elements is used to format, style, and layout the content.
A method generates a document by: inserting one or more placeholders in the document; binding each placeholder to a content source; and compiling the placeholders into code to generate content for the document based on the content source. The method then executes the code to generate the content and presenting the content of the document if in a presentation mode or restores the placeholder if in an edit mode.
Implementations of the invention may include one or more of the following. The placeholders can be formatted and annotated. Executable code can then be generated from the annotations to retrieve the content. The document can then be rendered based on the content. The generating of executable codes can include generating code to obtain content from a database. The code can be embedded as attributes in the placeholder. The placeholder can be a mark-up element, and can be an HTML element or an XML element. The method can include specifying a content insertion based on the placeholder, each placeholder having a representative content. The method can also use the formatting, styling, or layout of the representative content of the placeholder to format, style, or layout the content.
In another aspect, a method generates a document by inserting one or more placeholders in the document; binding each placeholder to a content source; and interpreting the placeholders and presenting the content of the document if in a presentation mode or restoring the placeholder if in an edit mode.
Implementations of the invention may include one or more of the following. Each placeholder includes one or more annotations describing the content for the placeholder. These annotations are used to generate content to replace the placeholder. The content as interpreted by the annotations are retrieved from the content sources. Each placeholder can be formatted. The formatting the content can be adjusted to match the format of the placeholder. The method can also interpret the layout; and replace the content in lieu of the placeholder when rendering the document. The placeholder can be restored when the designer edits the page in an edit mode. Metadata for the placeholder can be stored as a comment field in the document.
In another aspect, a method applies a document by: inserting one or more mark-up elements in the document; binding the mark-up elements to one or more content sources; retrieving data from the bound one or more content sources and replacing the mark-up elements with the retrieved data during run-time; and restoring the mark-up elements during an edit session.
Implementation of this method can include updating a markup language document during run-time based on an original layout and content generated on-the-fly. Further, the content replaces the placeholder.
In another aspect, a method generates a document having one or more mark-up elements, each elements being bound to a content source. This is done by specifying one or more parameters; retrieving data satisfying the one or more parameters from the bound content source; replacing the mark-up elements with the retrieved data; and displaying the document.
Advantages of the system may include one or more of the following. A designer can use a WYSIWYG editor to create a web site design in HTML. The system then uses the format, layout, and style of the HTML to insert, format, layout, and style the content. Because the system uses HTML, any HTML tool can be used to refine or edit the design.
The system supports a designer-friendly approach to incorporating the content technology of ASPs in a Web site. Powerful features for Web site designers, programmers, and intranet or e-commerce developers are supported, including the ability to work on or off line; add content sources to a page without writing a single line of script code; highlight placeholder text and graphics linked to content; customize numeric formatting and replication of table rows; link to pages; preview pages using placeholder or actual content; and generate all HTML and ASP code necessary for automatic content generation.
The system makes it easy to integrate content into a Web site. A web designer may create a web page using a conventional markup language and bind one of many database type fields to a portion of the markup language. Furthermore, the designer may replace the binding at a later time to another independent database to the same markup language portion. The two databases themselves may not be compatible to each other.
The Web designer can have complete pixel-level control over HTML in a visual design environment, while automatically generating industry-compliant ASP or other server code. The designers can see exactly how their designs look on different platforms and browsers in an Edit mode. Moreover, the system provides management tools to make it easier to create and maintain Web sites. Furthermore, as the content of the database fields that are bound to a portion of the markup language is changed, the generated web page is changed accordingly.
The system provides a complete solution for HTML layout, design, and Web site management. Designers have creative control and flexibility when designing Web sites. It lets graphic designers and publishers design and manage professional-quality Web sites containing the latest multimedia features, without requiring any HTML programming. At the same time, it provides HTML source-code and JavaScript tools to help Web designers and programmers integrate interactivity into their sites.
Referring now to
Specifically, the designer layouts a page with mock content placeholders (step 102). Next, the designer formats the mock content placeholders as necessary (step 104). The designer can format placeholders the same way he can format non-placeholders. This includes setting font and style attributes for text; height and width for images; borders, height, width, and cell spacing for tables; and others. Steps 102 and 104 can be done using any HTML authoring tool, including GoLive, available from Adobe Systems Incorporated of San Jose, Calif.
The designer then associates one or more annotations with the placeholders (step 106). In one implementation, the designer selects a table from a database and then binds individual fields from that table to placeholders on the page. These annotations tell the system what database tables the page needs to access. An image, for example, may have an annotation that tells the process 100 to replace the source of the image with the content of a particular database field. In another example, a piece of text may have an annotation that tells the process 100 to replace the text with the content of another database field. When the page is saved as a file, the annotations are turned into code that will get the appropriate data and make it available to the page during display.
Annotations can be inserted manually or automatically. Pseudo-code for one annotation embodiment is as follows:
From step 106, the annotations are used to compile the placeholders into executable code to retrieve content (step 108). This is done when the page is saved as a file.
Next, in step 110, the process 100 determines whether the user is in edit mode or view mode. If the user is in the view mode, the process 100 proceeds to step 112 where the page is displayed. In this step, each placeholder is analyzed, and based on the type and the annotations of the placeholder, appropriate code is generated that will put in the actual content. Alternatively, the annotations can be interpreted to fill the page with content. At run-time or edit time, the information in the annotations is processed to replace the placeholders with the actual content (interpretation). Finally, the page can be rendered with the content.
From step 110, if the user is in the edit mode, when the page is read, the code is decompiled back to the original placeholders and annotations so that the designer can edit them and change the layout (step 114). From step 112 or 114, the process 100 exits.
The layout 120 of
When the designer selects on a particular element, one or more corresponding fields becomes highlighted and checked in the content sources pane 150 of the contents palette. When a table is bound to a content source and the contents of a row to a field within that content source, the page when previewed or viewed online places the contents of that field for each database record into each subsequent row of the table. The text in previous rows without bindings remains as headings. For example, if there are eight table rows, the contents of that database field for eight records will appear one after another, one record for each row.
In
Operations associated with an exemplary placeholder are discussed next. In
Similarly, to insert a text element with a title and a body, two text placeholders 132 and 134 on the page are created. The box next to a Title field listed in the content sources pane 150 is selected to bind the placeholder 132 to the Title field of the database. Next, the body placeholder 134 is selected, and the box next to the Introduction field in the Content Sources pane 150 is selected to bind the placeholder 134 to another field in the database. Finally, the Show Bindings button in the Dynamic Content palette is selected. At this point, the page can be previewed to see the content in action.
Specific portions of the HTML code for the sample page shown in
As shown above, the design for the page whose contents are changed on the fly to suit certain user qualifier or parameters can be created using existing HTML elements. An element can be tagged (using an attribute, among others) to be associated with some form of content. At run-time, the representative content is examined to format, style, and layout the content. When editing, the <--Mock Content . . . > tag enables the system to replace the content with the mock placeholders so that the page can be easily edited.
Referring to
Next, this code is embedded as HTML or XML attributes on the placeholder (step 204) or simply stored as an HTML element or an XML element. XML is a simplified dialect of SGML (Standard Generalized Markup Language) for the structured presentation of information on the World Wide Web. XML is a subset of SGML for defining custom markup languages. XML documents use Document Type Definitions (DTDs) that define the custom tags available for use in the document. More information on XML is provided at www.w3.org/XML/ or at www.xml.com/
Finally, the process 200 also saves mock content placeholders so that, it should be used as decide to edit the page in a edit mode, the mock content placeholders can be restored for the designer to edit.
Although the process 200 shows content generation from the point of a designer, a user can influence the generation of content as well. In another embodiment, the user can control the type of content that the web page is to display. The user can specify his or her desired content using a qualifier along with the entry of a web site address. For example, the user can search for all stories by a particular author by entering “www.pubisher.com author=Tran.” The returned web page would be customized to the user's qualifier and would return only contents that had been authored by the desired user qualifier. The code generated for a link of this example is shown below:
To illustrate with an example, a placeholder element with annotations typically is expressed in HTML as:
The IMG tag additionally has an attribute called dynamic_src, which represents an annotation, which allows the system of
In one embodiment, code to generate an image is:
The last section lets the system reverse the compilation process for generating pages and turn the code back into an HTML page that the designer can edit the page as necessary.
The invention operates with various other placeholder types. For instance, the page layout of
Exemplary code for the text placeholder 250 is as follows:
This code inserts the text of the “Name” field from the current record of the “Product_Info” table. The current record is set by the code that retrieves the database information. The formatting depends on the tags surrounding the code. If the code is within an <H1> tag, for example, it is formatted as a heading.
Exemplary code for the image placeholder 252 is as follows:
This code replaces the src attribute of the image with the text of the ImageURL field. Replacing the src attribute causes the user's browser to retrieve the image referenced by the ImageURL.
Exemplary code for the table placeholder 254 is as follows:
This code constructs a table that shows all the records in the Product_Info table, with one record per row. Each row will display the Name of one product. The table will have the formatting indicated by the attributes in the <TABLE> tag.
Exemplary code for the text input box placeholder 256 is as follows:
This code creates a text input box for updating the Name field of the current record. The information will be uploaded to the database as part of a form submission.
Exemplary code for the pull-down menu placeholder 258 is as follows:
This code constructs a pull down menu to update the ShippingMethod field of the current record. The entries in the menu are created from the records in the Shipping_Methods table, each of which has a MethodName. The code is further designed to show the shipping method assigned to the current record.
Exemplary code for the radio box placeholder 260 is as follows:
This code fills the rows of a table with radio buttons to set the ProjectStatus field of the current Record. The code is similar to the pulldown menu code: entries are constructed from one table in the database (Status_List), and the current value is taken from another table (the current record selected in the Project_Information table). This code would typically be part of a form that the user could use to update the status of a project.
Exemplary code for the checkbox placeholder 262 is as follows:
This code creates a checkbox form control to update the value of the OnSale field of the current product. The extra code for the hidden input works around a limitation of HTML when updating Boolean fields in a database.
Exemplary code for the hotlink placeholder 264 is as follows:
This code creates a hotlink to another page, product_details.asp that will show more information about the current product. The Product_Info.Key( ) code passes the key for the current product to the details page so that it knows which record to show.
The code in these examples uses ASP (Microsoft's Active Server Page technology), but it could equally well use any other server side scripting format, including Java Server Pages (JSP)., PHP, and Perl. The internal annotation format also supports conversion among different formats by converting one format into the internal annotation format and then outputting the data in a different format.
The design is created using existing HTML elements. An element can be tagged (using an attribute, among others) to be associated with some form of content. At run-time, the representative content is examined to format, style, and layout the content.
The annotations are stored as XML or HTML attributes. This has the advantage that the file stays an XML or an HTML file, so that the designer can continue to edit it using existing XML and HTML tools. In contrast, other output formats do not use this model. ASP code, for example, is unstructured and cannot typically be read into an HTML editor.
Using the attribute format makes it easy to apply an interpreter that processes the content at runtime. An interpreter is a computer program that translates and executes instructions written in an interpreted programming language, such as programs written in Perl, Basic, or Java. The translation process involves the conversion of each source language statement of a given computer program into machine language suitable for execution. A user wishing to execute an application program written in the programming language will invoke an interpreter in order to execute the application program. The interpreter can simply parse the page as an XML or HTML document, and then using the standard DOM interface for accessing such a document, it can find the content annotations, fetch the required content, and substitute for the placeholders.
Referring now to
Pseudo-code to display a document by interpreting the content annotations is shown below:
1. Read the next placeholder from the document.
2. Read the annotations that describe the content that should replace that placeholder.
3. Retrieve the required content.
4. Format the content to match the formatting of the placeholder.
5. Replace the placeholder with the content.
6. Continue with step 1 until all placeholders have been processed.
7. Display the final document showing all the content.
The invention may be implemented in digital hardware or computer software, or a combination of both. Preferably, the invention is implemented in a computer program executing in a computer system. Such a computer system may include a processor, a data storage system, at least one input device, and an output device.
Further, variations to the basic computer system of
The above-described software can be implemented in a high level procedural or object-oriented programming language to operate on a dedicated or embedded system. However, the programs can be implemented in assembly or machine language, if desired. In any case, the language may be a compiled or interpreted language.
Each such computer program can be stored on a storage medium or device (e.g., CD-ROM, hard disk or magnetic diskette) that is readable by a general or special purpose programmable computer for configuring and operating the computer when the storage medium or device is read by the computer to perform the procedures described. The system also may be implemented as a computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner.
Other embodiments are within the scope of the following claims.
This application is a continuation application of and claims priority to U.S. application Ser. No. 09/456,888, filed on Dec. 7, 1999, the entire contents of which are hereby incorporated by reference.
Number | Name | Date | Kind |
---|---|---|---|
4674040 | Barker et al. | Jun 1987 | A |
5835712 | Dufresne | Nov 1998 | A |
5845084 | Cordell et al. | Dec 1998 | A |
5845303 | Templeman | Dec 1998 | A |
5890171 | Blumer et al. | Mar 1999 | A |
5911145 | Arora et al. | Jun 1999 | A |
5953731 | Glaser | Sep 1999 | A |
5956736 | Hanson et al. | Sep 1999 | A |
5987480 | Donohue et al. | Nov 1999 | A |
6021426 | Douglis et al. | Feb 2000 | A |
6035119 | Massena et al. | Mar 2000 | A |
6205452 | Warmus et al. | Mar 2001 | B1 |
6230173 | Ferrel et al. | May 2001 | B1 |
6343302 | Graham | Jan 2002 | B1 |
6347323 | Garber et al. | Feb 2002 | B1 |
6446097 | Glaser | Sep 2002 | B1 |
6558431 | Lynch et al. | May 2003 | B1 |
6584480 | Ferrel et al. | Jun 2003 | B1 |
Number | Date | Country |
---|---|---|
WO 9922313 | May 1999 | WO |
Number | Date | Country | |
---|---|---|---|
20070157083 A1 | Jul 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 09456888 | Dec 1999 | US |
Child | 11688210 | US |