Extensible ordered information within a markup language document
A markup language document includes a data structure includes a plurality of parameter tag statements. Each parameter tag statement includes a first field containing data representing a variable name and a second field containing data representing a command associated with the variable name. Each variable name indicates an order of execution of its associated command relative to the other commands.
Latest Microsoft Patents:
- SELECTIVE MEMORY RETRIEVAL FOR THE GENERATION OF PROMPTS FOR A GENERATIVE MODEL
- ENCODING AND RETRIEVAL OF SYNTHETIC MEMORIES FOR A GENERATIVE MODEL FROM A USER INTERACTION HISTORY INCLUDING MULTIPLE INTERACTION MODALITIES
- USING A SECURE ENCLAVE TO SATISFY RETENTION AND EXPUNGEMENT REQUIREMENTS WITH RESPECT TO PRIVATE DATA
- DEVICE FOR REPLACING INTRUSIVE OBJECT IN IMAGES
- EXTRACTING MEMORIES FROM A USER INTERACTION HISTORY
This is a continuation of U.S. application Ser. No. 09/907,298, filed Jul. 17, 2004, titled “EXTENSIBLE ORDERED INFORMATION WITHIN A MARKUP LANGUAGE”, which is a continuation of U.S. Pat. No. 6,317,760, filed Jan. 14, 1998, titled EXTENSIBLE ORDERED INFORMATION WITHIN A WEB PAGE”, both of which are herby incorporated herein by reference.
FIELD OF THE INVENTIONThis invention relates to computer programming, and more particularly, to a control and method for retrieving information in an ordered manner from an extensible set of information defined within a markup language document.
BACKGROUND OF THE INVENTIONThe Internet and the World Wide Web are rapidly expanding, with businesses and individuals hosting their own Web pages. This has created a demand for richer Web page capabilities, especially in the area of graphics and multimedia. However, the design and programming of the enhanced capability Web pages must remain simple, as not all Web page owners are sophisticated computer users. Nor should the use of graphics in a Web page require using external applications to program and debug these enhanced capabilities, which could greatly increase the cost of a solution. Instead, a user-friendly solution is desirable, where a standard text editor could be used and with human readable commands.
Most files downloaded and opened with a Web browser are pages formatted with Hypertext Markup Language (HTML). Native HTML provides the basic foundation for defining a Web page, although it does not specify a method for storing and retrieving a sequential series of extensible information, such as vector graphics commands and data. As such, graphics commands and data are typically stored in external files in a proprietary format which are accessed by the Web control via a Uniform Resource Link (URL). To create these graphics, graphics design programs are available to help the user, but these are an additional expense and require running the design program to modify the graphics. Furthermore, the graphics information is typically stored in a non-human readable (binary) format, which makes it difficult to debug because a user can not merely review and edit the HTML source code. Additionally, increased overhead, such as processing and network costs, are encountered when URL calls are made to process or execute external files.
Web controls and HTML conventions do not provide for reading defined information back in an ordered way. The standard definitions of HTML and the semantics of the HTML commands do not provide a method for retrieving a sequential series of commands or data, such as inquiring as to the value of the first variable defined, then the value of the second variable defined, etc. Rather, a Web page has a random, non-ordered address space, whereby the value of a variable is retrieved by specifically asking for it by name. Moreover, there is no concept of the ordering of variables inherent in the definition of HTML variables. Thus, a user cannot define a series of information using HTML in which a control can then sequentially read and process this data or execute these commands. This limits the capabilities of Web pages, including the availability of graphics capabilities in which performing a series of operations (such as linear transformations) is commonly needed.
SUMMARY OF THE INVENTIONAccording to the invention, a method provides an extensible ordered set of data and commands in a Web page, and a control reads and stores this information, and subsequently processes the series of information. Thus, without having to extend HTML or provide an alternate language such as Virtual Reality Modeling Language (VRML), the HTML source of a Web page includes a series of commands which are read, stored, and subsequently executed in a specified order by the control, such as a browser. In this manner, a sequence of graphics commands can be specified in the ASCII source, with these commands being executed by a Web control at some later time in the predefined order.
In accordance with the invention, a set of Web page variables are first defined, whose names correspond with a naming convention to which a predetermined ordering is attached. The commands and data to be processed are stored as the values of these variables. A Web control then accesses these variables and processes the statements stored therein in the order determined by the variable naming convention. Furthermore, by defining an open-ended naming convention, the control is not required to know the number of variables to process. Rather, the control processes the sequence in accordance with the naming convention until such time as one of the variables is not defined, indicating the end of the sequence.
More specifically, an embodiment of the invention provides for defining an extensible, ordered series of information within the confines of an HTML document by exploiting the HTML capability to define an open-ended set of property names with values using the HTML PARAM Tag statement. In addition, the semantics of a property value are modified to be that of a command and/or data to be executed or processed, rather than a display property of the object in which it is defined.
In keeping with the invention, the naming convention provides the desired ordering for the information stored in the Web page variables. One embodiment uses the format of a constant alphabetic prefix appended with a numerical suffix, where the values of the suffix are sequential in nature. For instance, a series of variable names could be Line0001, Line0002, Line0003, etc. As readily evident to one skilled in the art, numerous other naming schemes could be adopted, such as using alphanumeric characters instead of numbers or using a NULL prefix, which would be in keeping with the spirit, character, and scope of the invention.
It is further contemplated that Web page variables, including those defined by PARAM Tag statements, could be used to define within the Web object the syntax of the particular naming convention to be used. This could include setting the prefix, suffix, and numeric spacing between variables (e.g., 1, 10), as well as the name of the first variable of the extensible sequence. Moreover, multiple series of commands can be defined within the same object by using a different naming convention, such as using two different prefixes.
Once a control encounters Web page variables defined in accordance with the naming convention, the control will subsequently process the information in the order determined according to the naming convention employed. In one embodiment, the control will first retrieve and parse all the commands stored in the Web page variables to build a table reflective of the sequence in which to process the commands. In this manner, the control then can more efficiently interpret and execute the commands. The values of these variables are retrieved until a NULL value is retrieved for the next variable name according to the naming convention, which indicates the end of the series of information.
Thus, by redefining the meaning of HTML property values and defining property variables according to the naming convention, a method for providing an open-ended, extensible series of information within a HTML document is realized. Furthermore, this method does not require an expansion of HTML, the information is stored in a single HTML document which is human readable, loaded with a single file load operation, directly extensible by the author, created and edited using a standard ASCII text editor, or produced by most any development tool including being downloaded and created from the server via an Active Server File (ASP) or other server side script (e.g., through a language that supports Common Gateway Interface (CGI)).
BRIEF DESCRIPTION OF THE DRAWINGSThe appended claims set forth the features of the present invention with particularity. The invention, together with its advantages, may be best understood from the following detailed description taken in conjunction with the accompanying drawings of which:
With reference to
A number of program modules may be stored on the hard disk, magnetic disk 29, optical disk 31, ROM 24 or RAM 25, including an operating system 35, one or more application programs 36, other program modules 37, and program data 38. A user may enter commands and information into the personal computer 20 through input devices such as a keyboard 40 and pointing device 42. Other input devices (not shown) may include a microphone, joystick, game pad, satellite dish, scanner, or the like. These and other input devices are often connected to the processing unit 21 through a serial port interface 46 that is coupled to the system bus, but may be collected by other interfaces, such as a parallel port, game port or a universal serial bus (USB). A monitor 47 or other type of display device is also connected to the system bus 23 via an interface, such as a video adapter 48. In addition to the monitor, personal computers typically include other peripheral output devices (not shown), such as speakers and printers.
The personal computer 20 may operate in a networked environment using logical connections to one or more remote computers, such as a remote computer 49. The remote computer 49 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 the personal computer 20, although only a memory storage device 50 has been illustrated in
When used in a LAN networking environment, the personal computer 20 is connected to the local network 51 through a network interface or adapter 53. When used in a WAN networking environment, the personal computer 20 typically includes a modem 54 or other means for establishing communications over the wide area network 52, such as the Internet. The modem 54, which may be internal or external, is connected to the system bus 23 via the serial port interface 46. In a networked environment, program modules depicted relative to the personal computer 20, 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.
Turning now to
By definition, HTML tags are codes enclosed in angle brackets that are used by a Web browser to determine the structure and appearance of an HTML document, such as graphic elements and text formatting. A PARAM definition has limited scope, as it is only valid within an OBJECT element of an ActiveX object, within an APPLET of a JAVA applet, or within an EMBED tag. A control cannot ask for a list of all available property values; rather it can only ask for the value for a specified property name, and it receives the value or an indication that the requested property name has not been defined.
Shown in
Turning now to
Beginning in step 310, a counter variable i is set to 0001, which corresponds to the suffix value for the first variable name in the sequence defined by the naming convention. Then, as determined in step 320, while there is a variable defined with the property name Line<i> (where “Line” is the prefix as determine in accordance with the invention, and “<i>” represents the current value of the counter variable i), then in step 325, the value of the variable with the property name Line<i> is retrieved, parsed, and added to a data structure containing the sequence of commands. Finally, in step 330, the counter variable i is increased by one (in accordance with the exemplary naming convention), and the retrieving of the remaining defined property variables continues with step 320.
When there is no longer any property variable defined in accordance with the invention as determined in step 320, processing transfers to step 340 which sets the entry at position i of the display list data structure 400 to NULL to indicate the end of the sequence of information. In step 350, the counter variable i is set to one for processing of the commands or data stored in the display list data structure 400. Next, as determined in step 360, while the entry at position i of the display list data structure 400 is not NULL, then process the information stored at position i in step 365, and then increase the value of i by one in step 370. When a NULL entry is encountered at position i of the display list data structure 400, the end of the series of information has been reached.
Turning now to
As shown in
Claims
1. A computer-readable medium having stored therein a data structure for access by a computer program, the data structure representing a markup language document including statements defining a plurality of property variables, each of said statements comprising:
- a first field containing data representing a name of a property variable; and
- a second data field containing data representing a value of the property variable and specifying a command associated with the property variable, the names of the plurality of property variables provided in accordance with an order-defining naming convention to indicate an execution sequence of the commands specified in the respective values of the property variables.
2. The computer-readable medium of claim 1, wherein the markup language is the Hypertext Markup Language (HTML).
3. The computer-readable medium of claim 2, wherein the statements defining the property variables represent PARAM elements of the HTML markup language document.
4. The computer-readable medium of claim 1, wherein the commands specified in the values of the property variables include commands for generating graphical images.
5. A computer-readable medium having stored therein a markup language document defining a data structure for access by a computer program, the data structure comprising:
- a plurality of parameter tag statements, each parameter tag statement having a first field containing data representing a variable name and a second field containing data representing a command associated with the variable name, wherein each variable names indicates an order of execution of its associated command.
6. The computer-readable medium of claim 5, wherein the markup language document comprises a Hypertext Markup Language (HTML) document.
7. The computer-readable medium of claim 5, wherein the parameter tag statements are arranged in an order conforming to the order of command execution indicated by the variable names.
8. The computer-readable medium of claim 5, wherein each variable name comprises an alphanumeric prefix and a numeric suffix.
9. The computer-readable medium of claim 5, wherein each variable name includes a numeric portion that indicates an order of execution of its associated command relative to other commands.
10. A method comprising:
- retrieving a plurality of parameter tag statements from a markup language document, each parameter tag statement having a first field containing data representing a variable name and a second field containing data representing a command associated with the variable name; and
- executing the commands in an execution sequence indicated by the variable names.
11. The method of claim 10, wherein each command comprises a graphics method.
12. The method of claim 10, wherein the markup language document comprises a Hypertext Markup Language (HTML) document.
13. The method of claim 10, wherein the parameter tag statements are arranged in the markup language document in an order conforming to the order of command execution indicated by the variable names.
14. The method of claim 10, wherein each variable name comprises an alphanumeric prefix and a numeric suffix.
15. The method of claim 10, wherein each variable name includes a numeric portion that indicates an order of execution of its associated command relative to other commands.
Type: Application
Filed: Dec 10, 2004
Publication Date: May 5, 2005
Applicant: Microsoft Corporation (Redmond, WA)
Inventors: Marion Byrd (Bellevue, WA), Paul David (Redmond, WA), Michael Hyman (Seattle, WA)
Application Number: 11/008,821