System, method, and medium for generating style sheets during runtime
By generating a new style sheet after the client device receives a resource request, the problem of untimely updating of the style sheet in the prior art is solved, the resource presentation is matched with the latest style rule selected by the user, and the user experience is improved.
Patent Information
- Application Number
- CN202210318212.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2016-10-21
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2036-10-21
AI Technical Summary
The existing technology makes it difficult to dynamically update the style sheet at runtime, resulting in resource presentation that does not match the latest style rules selected by the user, affecting the user experience.
Ensure that resource rendering matches the latest style rules by identifying and generating a new style sheet after a client device receives a resource request, updating the style sheet based on modified values of resource properties, and transmitting the new style sheet to the client device.
It implements dynamic updating of style sheets at runtime to ensure that resource presentation is consistent with the latest style rules selected by users, improving user experience and presentation quality.
Smart Images

Figure CN114626337B_ABST
Abstract
Description
[0001] This application is a divisional application of the invention patent application with the application date of October 21, 2016, the name of which is “System, method and medium for generating style sheets during runtime” and the application number is 201610920121.7.
[0002] This application claims priority to U.S. Non-Provisional Application No. 15 / 080,395, filed on March 24, 2016, and U.S. Provisional Application No. 62 / 245,850, filed on October 23, 2015, the contents of both of which are incorporated herein by reference. Technical Field
[0003] The present disclosure relates to style sheets. In particular, the present disclosure relates to generating style sheets during runtime. Background Art
[0004] A style sheet language or style language is a computer language that expresses the presentation of a structured document. An attractive feature of structured documents is that the content can be reused in many contexts and presented in a variety of ways. Different style sheets can be attached to the logical structure to produce different presentations.
[0005] An example of a widely used style sheet language is Cascading Style Sheets (CSS), which is used to style documents written in HTML, XHTML, SVG, XUL, and other markup languages.
[0006] To the content in a structured document to be presented, a set of style rules is applied - describing, for example, colors, fonts, and layout. A collection of style rules is called a style sheet. In electronic publishing, style sheet languages are used primarily in the context of visual presentation rather than spelling and punctuation.
[0007] The approaches described in this section are approaches that could be pursued, but not necessarily approaches that have been previously conceived or pursued. Therefore, it should not be assumed that any of the approaches described in this section qualifies as prior art merely by virtue of their inclusion in this section. Summary of the invention
[0008] According to one aspect of the present disclosure, a non-transitory computer-readable medium including instructions is provided, which, when executed by one or more hardware processors, results in the execution of operations, the operations including: receiving a first request for a specific resource from a client device; after receiving the first request, generating a new style sheet for the specific resource based on a corresponding plurality of values currently configured for a plurality of attributes of the specific resource; and transmitting the new style sheet for the specific resource to the client device.
[0009] According to yet another aspect of the present disclosure, a system including at least one device is provided, wherein the at least one device includes a hardware processor, wherein the system is configured to perform the operations of the present disclosure.
[0010] According to yet another aspect of the present disclosure, a method is provided, comprising the operations of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] The embodiments are shown in the figures of the accompanying drawings by way of example and not by way of limitation. It should be noted that references to "one" or "an" embodiment in the present disclosure do not necessarily refer to the same embodiment, and they mean at least one. In the drawings:
[0012] Figure 1 A system according to one or more embodiments is shown;
[0013] Figure 2 and 3 An example set of operations for generating a style sheet during runtime is shown according to one or more embodiments;
[0014] Figure 4 Systems are shown in accordance with one or more embodiments. DETAILED DESCRIPTION
[0015] In the following description, for the purpose of explanation, numerous specific details are set forth in order to provide a thorough understanding. One or more embodiments may be practiced without these specific details. Features described in one embodiment may be combined with features described in different embodiments. In some examples, well-known structures and devices are described in reference block diagram form to avoid unnecessarily obscuring the present invention. The detailed description includes the following sections:
[0016] 1. General Overview
[0017] 2. System Architecture Overview
[0018] 3. Generate stylesheets during runtime
[0019] 4. Other Items; Extensions
[0020] 5. Hardware Overview
[0021] 1. General Overview
[0022] One or more embodiments are directed to generating a style sheet during runtime.In one embodiment, a style sheet can be generated by executing code that (a) identifies stored values for various properties of a resource and (b) generates a style sheet based on the stored values.
[0023] In one embodiment, after receiving a request for a resource from a client device, a new style sheet is generated for the resource. In one example, a first request for a resource is received from a client device. In response to determining that a value for at least one attribute of the requested resource has been modified since a last generated style sheet associated with the requested resource was generated, a new style sheet is generated. The requested resource is modified to reference the new style sheet. The modified resource is transmitted to the client device with a reference to the new style sheet. A second request for the new style sheet is received from the client device based on the reference to the new style sheet in the modified resource. The new style sheet is transmitted to the client device.
[0024] In one embodiment, upon identifying a modification of a value of at least one attribute of a resource, a new style sheet is generated for the resource. When the value of an attribute is modified, (one or more) resources associated with the attribute are identified. Thereafter, a new style sheet is generated for the resource. The new style sheet may be generated based at least on the modified value of at least one attribute of the resource.
[0025] In one embodiment, in response to determining that a last generated style sheet for a resource is out of date, a new style sheet is generated for the resource. When a value of a property is modified, a last generated style sheet for the resource associated with the property is identified. Based on the modification of the value of the property, the last generated style sheet is determined to be out of date. A new style sheet is generated for the resource. The new style sheet may be generated based on at least the modified value of at least one property of the resource.
[0026] Even after the old style sheet has been updated to a new style sheet, embodiments herein allow users who are using a web page version based on the old style sheet to continue to access the old style sheet. Embodiments herein use monotonically increasing numbers to update the style sheet and change the page that references the style sheet to reference the page name appended or pre-appended with the monotonically increasing number.
[0027] 2. System Architecture Overview
[0028] Figure 1 A system (100) according to one or more embodiments is shown. Although a specific system is described, other embodiments are applicable to any system that can be used to perform the functions described herein. Additional or alternative components that perform the functions described herein may be included. The components described herein may be completely omitted in one or more embodiments. One or more components described within the system (100) may be combined together in a single device.
[0029] The components of the system (100) are connected via a network such as a local area network (LAN), a wide area network (WAN), the Internet, an intranet, an extranet, and / or a satellite link, but the network is not limited to these. Any number of devices connected within the system (100) can be directly connected to each other via wired and / or wireless communication segments. In one example, the devices within the system (100) are connected via a direct wireless connection such as a Bluetooth connection, a near field communication (NFC) connection, and / or a direct Wi-Fi connection.
[0030] In one embodiment, the system (100) includes one or more of each of the following: a client device (110), a network server (102), an interface (104), a data repository (106), and an application server (108). Two or more of the components may be implemented on a single device or distributed across multiple devices. For example, the interface 104, the data repository 106, the application server 108, and the network server 102 may be implemented on a single device. Furthermore, the operations performed by the network server (102) and the application server (108) may alternatively be performed by a single server. Thus, the specific components, devices, and operations recited herein should not be construed as limiting the scope of any claim.
[0031] In one embodiment, the data repository (106) corresponds to any local or remote storage device. Access to the data repository (106) can be limited and / or protected. In one example, access to the data repository (106) requires authentication using a password, certificate, biometrics, and / or another suitable mechanism. Those skilled in the art will appreciate that elements or portions of the data stored in the data repository (106) can be distributed and stored in multiple data repositories. In one or more embodiments, the data repository (106) is flat, hierarchical, network-based, relational, dimensional, object-modeled, or otherwise structured. In one example, the data repository (106) is maintained as a table of an SQL database and validated against other data repositories. In one embodiment, the data repository (106) stores resource attribute values (125) and / or style sheets (130).
[0032] In one embodiment, resources (120) include, but are not limited to, documents, data items, user interfaces, or any other items that can be displayed to a user. A web page is an example of a resource (120). The attributes of a resource (referred to herein as "resource attributes") include at least style-related attributes that specify how a resource can be presented. Resource attributes can be applied to one or more visual elements of a resource or to the resource as a whole. Examples of resource attributes include, but are not limited to, color, font, thickness, layout, and accessibility. For example, color can be applied to the background color of a web page or the color of a button on a web page. Thickness can be applied to, for example, a border displayed on a web page. Resource attribute values (125) are values corresponding to various attributes of a resource. Examples of attribute: value pairs include background color: blue, color: black, font size: 10, font family: Times_New_Roman, font weight: bold, padding: 0_0_0_0, and border: 12_px_solid.
[0033] In one embodiment, a style sheet (130) is a document that includes a specific set of attribute:value pairs described above. A resource (120) or metadata associated with a resource (120) may reference a specific style sheet to be used to render the resource (120). The style sheet referenced by the resource (120) is used by an application to style the resource (120). Specifically, the application may determine how to render the resource (120) for presentation. In one example, the style sheet (130) is used by a browser to determine how to render a web page. The style sheet (130) may indicate to the browser the color and font to be used for text within the web page.
[0034] In one embodiment, the interface (104) is any type of input / output (I / O) interface, including but not limited to a screen, monitor, touch screen, keyboard, mouse, speaker, microphone. The interface (104) can be implemented on the client device (110) and / or any other device. Data received through the interface (104) can be stored in the data repository (106). In one or more embodiments, the interface (104) includes one or more user interface components. The user interface component includes functionality for presenting any type of visual, audio, tactile or other sensory information. In one example, the user interface component refers to a graphical user interface (GUI) element. For example, the user interface component includes a text field, radio button and / or check box through which a user can enter user input. The user interface component also includes functionality for accepting user input. All or a subset of the user interface components can be displayed independently, sequentially or simultaneously with each other. All or a subset of the user interface components can interact with each other. For example, one user interface component includes a button or other interactive field that triggers the presentation of another user interface component.
[0035] In one example, the interface (104) is configured to display a list of configurable resource attributes associated with one or more resources. The interface (104) may also display current values of resource attributes. In addition, the interface (104) may accept user input to modify / update current values of resource attributes. The interface (104) may be implemented on the client device (110) or another device.
[0036] In one embodiment, the application server (108) is a device including a hardware processor. In another embodiment, the application server (108) is a software application executed on a device including a hardware processor. The application server (108) includes any combination of hardware and / or software that includes functionality to generate a style sheet (130) for one or more resources (120) based at least on resource attribute values (125). According to one or more embodiments, various operations for generating a style sheet are described below with reference to Figure 2 describe.
[0037] In one embodiment, the web server (102) is a device that includes a hardware processor. In one embodiment, the application server (108) is a software application that executes on a device that includes a hardware processor. The application server (108) includes any combination of hardware and / or software that includes functionality to deliver resources (120) and style sheets (130) to one or more client devices (e.g., client device (110)). The web server (102) can communicate with a web browser executing on the client device (110).
[0038] In one embodiment, one or more network servers (e.g., network server (102)) receive a style sheet (130) from one or more application servers (e.g., application server (108)). The network server may include functionality to forward the style sheet (130) and corresponding resources (120) to the client device (110). The network server may also include functionality to initially transmit the resources (120) and to forward the style sheet (130) separately in response to a request for the style sheet (130). In other embodiments, the functionality described herein with respect to the network server (102) and the application server (108) may be interchangeable. Both the network server (102) and the application server (108) may be implemented on the same device.
[0039] 3. Generate stylesheets during runtime
[0040] Figure 2 An example set of operations for generating a style sheet during runtime and / or after receiving a request for related content is shown. Figure 2As described, the operations for generating a style sheet may be omitted, rearranged, or modified. In addition, operations may be added or performed by different components or devices. Thus, a specific set or sequence of operations should not be interpreted as limiting the scope of any embodiment.
[0041] In one embodiment, a request for a resource is received from a requestor (operation 202). The request may be received via the Internet, via a local network, or via any other network(s). The request may be received via any form of wired or wireless communication. As mentioned herein, a requestor may include any device or application / operating system executing on a device.
[0042] In one example, a browser executing on a client device initially transmits a request for a web page corresponding to "www.Oracle.com" via HTTP. The request is transmitted to a Domain Name System (DNS) server. The DNS server returns an Internet Protocol (IP) address of a web server that can serve the request by returning a web page corresponding to "www.Oracle.com." The browser transmits the request for the web page to the IP address identified by the DNS server. The web server corresponding to the IP address receives the request for the web page corresponding to "www.Oracle.com."
[0043] In one embodiment, a query is made as to whether the last generated style sheet for the resource is out of date (operation 204). If the last generated style sheet does not reflect the latest user selection / entry of values for the resource attributes, then the last generated style sheet for the resource is out of date.
[0044] Various techniques may be used to infer that the last generated style sheet for a resource is out of date. Some techniques involve a comparison of (a) the value of a resource attribute in the last generated style sheet with (b) the current value of the resource attribute. Other techniques do not require a comparison of actual values. It should be understood that any technique may be used to infer (or estimate) whether the last generated style sheet associated with a resource is out of date. Any particular technique for determining whether the last generated style sheet is out of date should not be construed as limiting the scope of the claims.
[0045] The last generated style sheet can be identified via analysis of the requested resource. For example, the last generated style sheet for the resource can be referenced by the resource itself. Analysis of the resource results in identification of a reference to the last generated style sheet, and accordingly, identification of the last generated style sheet. In another example, the last generated style sheet for the resource can be identified from a mapping of resources to style sheets maintained by a network server or by an application server.
[0046] In one embodiment, a last generated style sheet for a resource is determined to be out of date if (a) the value for at least one resource attribute indicated in the last generated style sheet does not match (b) the current value for at least one resource attribute in a data set including current values. A data set including current values is a data set maintained by the system based on user submissions of values corresponding to resource attributes. As noted above, a user interface may be used by a user to submit values for a set of resource attributes. The most recent submission for any attribute is the current value for that attribute. The current values for all attributes of a resource are maintained as a data set in a data storage device (e.g., a database).
[0047] In one example, determining whether a last generated style sheet is out of date involves the use of version numbers. Values for resource attributes are associated with version numbers. Version numbers can be maintained in terms of values or as a set of values as a whole. Each time the value of a resource attribute is updated, the corresponding version number is updated. Each style sheet includes or is associated with (one or more) specific version numbers. The (one or more) specific version numbers associated with a style sheet correspond to the (one or more) version numbers that were the values of the current version number when that style sheet was generated. If the (one or more) version numbers associated with the last generated style sheet do not match the (one or more) current version numbers, then the last generated style sheet is determined to be out of date. If the (one or more) version numbers associated with the last generated style sheet match the (one or more) current version numbers, then the last generated style sheet is determined to be current (not out of date).
[0048] In another example, determining whether a last generated style sheet is out of date involves the use of a hash value. A first hash value is determined based on a value of a resource attribute indicated in the last generated style sheet. A second hash value is determined based on a current value of the resource attribute. If the first hash value does not match the second hash value, then the last generated style sheet is determined to be out of date. If the first hash value matches the second hash value, then the last generated style sheet is determined to be current (not out of date).
[0049] In another example, determining whether a last generated style sheet is out of date involves comparing (a) a first timestamp identifying a time when the last generated style sheet was generated and (b) a second timestamp identifying a last time a current value of a resource attribute was updated. If the first timestamp is earlier than the second timestamp, then the last generated style sheet is determined to be out of date. If the first timestamp is the same as or later than the second timestamp, then the last generated style sheet is determined to be current (not out of date).
[0050] In another example, determining whether a last generated style sheet is out of date involves checking a flag, metadata, or content of the last generated style sheet that indicates whether the last generated style sheet is out of date. At any time when a value of a resource attribute associated with the last generated style sheet for a resource is updated, the style sheet can be marked as out of date. If the last generated style sheet is marked as out of date, then the last generated style sheet is determined to be out of date. If the last generated style sheet is not marked as out of date, then the last generated style sheet is determined to be current (not out of date).
[0051] If it is determined in operation 204 that the last generated style sheet for the resource is not outdated, operations 206-210 may be performed. Specifically, the requested resource is transmitted to the requester (operation 206). Once the requester receives the resource, the requester can identify the last generated style sheet based on a reference to the last generated style sheet included in the resource. If the requester has a cached version of the last generated style sheet, the requester can use the cached version of the last generated style sheet. If the requester does not have a cached version of the style sheet referenced by the resource, the requester can request the style sheet referenced by the resource. A request for the style sheet referenced by the resource (i.e., the last generated style sheet) is received from the requester (operation 208). In response to receiving the request, the last generated style sheet is transmitted to the requester (operation 210). The requester then uses the last generated style sheet to style the resource for presentation to the user.
[0052] If it is determined in operation 204 that the last generated style sheet for the resource is outdated, operations 212-222 may be performed. In one embodiment, a new style sheet is generated for the resource (operation 212). In one example, generating the new style sheet may include modifying a style sheet template. The style sheet template includes style information with variable names having substitute values. The modification of the style sheet template includes replacing the variable names with corresponding values associated with the resource attributes. The replacement results in generating a style sheet that can be used to style the resource. In another example, a set of codes generates each row of the style sheet by combining the values of the resource attributes and the tags for each resource attribute.
[0053] In one embodiment, the requested resource is modified to include a reference to the new style sheet (operation 212). In one example, the requested resource includes a reference to the last generated style sheet associated with the identifier "style_sheet_version_21". The new style sheet generated in operation 212 is associated with an identifier including the updated version number "style_sheet_version_22". The requested resource is modified from referencing "style_sheet_version_21" to referencing "style_sheet_version_22". The modification of the resource results in obtaining a modified resource that references the new style sheet.
[0054] In one embodiment, the modified resource referencing the new style sheet is transmitted to the requestor of the resource (operation 216). When the requestor receives the modified resource, the requestor identifies the reference to the new style sheet. Since the new style sheet is newly created, the new style sheet has not been previously transmitted to the requestor. Thus, the requestor does not have a cached copy of the new style sheet. Thus, the requestor transmits a second request requesting the new style sheet using the identifier of the new style sheet as recorded in the modified resource.
[0055] In one embodiment, a request for a new style sheet is received from the requestor (operation 218). In response to the request for the new style sheet, the new style sheet is transmitted to the requestor (operation 220). The requestor, having received both the modified resource and the new style sheet, is able to style the resource using the new style sheet.
[0056] In one embodiment, the generation of the style sheet may instead be performed after operation 218, as described above with reference to operation 212 after operation 204. For example, the resource may be modified to include an identifier of the new style sheet to be generated. The generation of the new style sheet itself may be delayed until after a request for the new style sheet is received (based on the identifier in the modified resource).
[0057] In one embodiment, the newly generated style sheet can be transmitted along with the resource, rather than waiting for a request for a new style sheet. For example, operations 216 and 220 can be performed together. If the new style has been transmitted with the resource, the request for a new style sheet as shown in operation 218 may not be received.
[0058] Figure 3 An example set of operations for generating a style sheet during runtime is shown. Figure 3 As described, the operations for generating a style sheet may be omitted, rearranged, or modified. In addition, operations may be added or performed by different components or devices. Thus, a specific set or sequence of operations should not be interpreted as limiting the scope of any embodiment.
[0059] Figure 3 An operation set 302-308 is shown that can trigger the generation of a new style sheet for a resource. The operation set 302-308 can be performed periodically, continuously, or in response to receiving a request for a resource. In some embodiments, the operations 302-308 can be performed regardless of whether a request for a resource has been received.
[0060] In one embodiment, updates to resource properties associated with a resource are monitored (operation 302) to determine whether any values for the resource properties are updated (operation 304). If no updates to the values of the resource properties are detected, monitoring operation 302 continues. If the value for at least one resource property is updated, generation of a new style sheet is triggered (operation 312), and the resource is modified to reference the new style sheet (operation 314). Operations 312 and 314 are substantially similar to operations 212 and 214 described above.
[0061] In one embodiment, the last generated style sheet associated with the resource is monitored (operation 306) to determine whether the last generated style sheet is out-of-date (operation 308). Operation 308 is substantially similar to operation 204 described in detail above. If the last generated style sheet is not out-of-date, monitoring operation 306 continues. If the last generated style sheet is determined to be out-of-date, generation of a new style sheet is triggered (operation 312), and the resource is modified to reference the new style sheet (operation 314). Thus, either of operations 304 and 308 can trigger both generation of a new style sheet for the resource (operation 312) and modification of the resource to reference the new style sheet (operation 314).
[0062] In one example, after receiving a request for a web page from a client, a style sheet is generated for the web page. The style sheet can be generated in response to receiving the request for the web page. A first request for a specific resource is received from a client device. After receiving the first request, a new style sheet is generated for the specific resource based on a plurality of values currently configured for a corresponding plurality of attributes of the specific resource. The new style sheet for the specific resource is transmitted to the client device.
[0063] In one example, in response to receiving a new value for a property of a particular resource, a new style sheet is generated for the particular resource. It is determined that a value of at least one property in a property set for the particular resource has been modified since a last generated style sheet associated with the particular resource was generated. In response to determining that the value for the at least one property has been modified, a new style sheet is generated. In one example, in response to determining that a value of at least one property in a property set for the particular resource has been modified since the generation of the last generated style sheet, the last generated style sheet is marked as obsolete.
[0064] In one example, a resource is modified to reference a new style sheet. In response to a request for the resource, the modified resource is transmitted. A request for a new style sheet is received based on a reference to the new style sheet included in the modified resource. The new style sheet may be generated after receiving the request for the new style sheet. Thus, when the resource is modified to reference the new style sheet, the new style sheet may not necessarily have been created.
[0065] In one example, in response to receiving an updated value for a resource, a new style sheet is generated for the resource. User input including an updated value for a particular resource attribute is received. A resource associated with the resource attribute is identified. An updated style sheet is generated for the resource based at least on the updated value.
[0066] In one example, in response to determining that a last generated style sheet is out of date, a new style sheet is generated for a resource. For a particular resource, a value for at least one of a plurality of properties is determined to have been modified since generation of a last generated style sheet corresponding to the particular resource. In response to the determination, an updated style sheet is generated for the resource based at least on the value for the at least one property.
[0067] 4. Other Items; Extensions
[0068] Embodiments are directed to a system having one or more devices, wherein the one or more devices include a hardware processor and are configured to perform any of the operations described herein and / or recited in any claims below.
[0069] In one embodiment, a non-transitory computer-readable storage medium includes instructions that, when executed by one or more hardware processors, result in the performance of any of the operations described herein and / or recited in any claims below.
[0070] Any combination of the features and functions described herein may be used in accordance with one or more embodiments. In the foregoing description, embodiments have been described with reference to many specific details, which may vary from one implementation to another. Thus, the description and drawings should be considered in an illustrative rather than a restrictive sense. The sole and exclusive indication of the scope of the invention, and what the applicants intend to be the scope of the invention, is the literal and equivalent scope of the set of claims issued by this application, in the specific form in which such claims are issued, including any subsequent modifications.
[0071] 5. Hardware Overview
[0072] According to one embodiment, the technology described herein is implemented by one or more special-purpose computing devices. The special-purpose computing device can be hard-wired to perform the technology, or can include digital electronic devices such as one or more application-specific integrated circuits (ASICs) or field programmable gate arrays (FPGAs) that are permanently programmed to perform the technology, or can include one or more general-purpose hardware processors programmed to perform the technology according to program instructions in firmware, memory, other storage devices, or combinations thereof. Such special-purpose computing devices can also combine customized hard-wired logic, ASICs or FPGAs with customized programming to implement the technology. The special-purpose computing device can be a desktop computer system, a portable computer system, a handheld device, a networking device, or any other device that combines hard-wiring and / or program logic to implement the technology.
[0073] For example, Figure 4 4 is a block diagram illustrating a computer system 400 upon which embodiments of the present invention may be implemented. Computer system 400 includes a bus 402 or other communication mechanism for communicating information, and a hardware processor 404 coupled to bus 402 for processing information. Hardware processor 404 may be, for example, a general purpose microprocessor.
[0074] Computer system 400 also includes a main memory 406, such as a random access memory (RAM) or other dynamic storage device, coupled to bus 402 for storing information and instructions to be executed by processor 404. Main memory 406 may also be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor 404. When stored in a non-transitory storage medium accessible to processor 404, such instructions cause computer system 400 to become a special-purpose machine customized to perform the operations specified in the instructions.
[0075] Computer system 400 also includes a read only memory (ROM) 408 or other static storage device coupled to bus 402 for storing static information and instructions for processor 404. A storage device 410, such as a magnetic or optical disk, is provided and coupled to bus 402 for storing information and instructions.
[0076] The computer system 400 may be coupled to a display 412, such as a cathode ray tube (CRT), via the bus 402 for displaying information to a computer user. An input device 414, including alphanumeric and other keys, is coupled to the bus 402 for communicating information and command selections to the processor 404. Another type of user input device is a cursor control 416, such as a mouse, trackball, or cursor direction keys, for communicating directional information and command selections to the processor 404 and for controlling cursor movement on the display 412. Such input devices typically have two degrees of freedom in two axes, a first axis (e.g., x) and a second axis (e.g., y) to allow the device to specify a position in a plane.
[0077] Computer system 400 may implement the techniques described herein using custom hardwired logic, one or more ASICs or FPGAs, firmware, and / or program logic that, in combination with a computer system, makes computer system 400 a special purpose machine or programs computer system 400 to be a special purpose machine. According to one embodiment, the techniques herein are performed by computer system 400 in response to processor 404 executing one or more sequences of one or more instructions contained in main memory 406. Such instructions may be read into main memory 406 from another storage medium, such as storage device 410. Execution of the sequences of instructions contained in main memory 406 causes processor 404 to perform the process steps described herein. In alternative embodiments, hardwired circuitry may be used in place of or in combination with software instructions.
[0078] The term "storage medium" as used herein refers to any non-transitory medium that stores data and / or instructions that cause a machine to operate in a particular manner. Such storage media may include non-volatile media and / or volatile media. Non-volatile media include, for example, optical or magnetic disks, such as storage device 410. Volatile media include dynamic memory, such as main memory 406. Common forms of storage media include, for example, floppy disks, flexible disks, hard disks, solid-state drives, magnetic tapes, or any other magnetic data storage media, CD-ROMs, any other optical data storage media, any physical media with a pattern of holes, RAM, PROMs and EPROMs, FLASH-EPROMs, NVRAMs, any other memory chips or boxes.
[0079] Storage media are distinct from transmission media but may be used in conjunction with them. Transmission media participate in the transfer of information between storage media. For example, transmission media include coaxial cables, copper wire, and optical fiber, including the wires that comprise bus 402. Transmission media may also take the form of acoustic or light waves, such as those generated in radio wave and infrared data communications.
[0080] Various forms of media may be involved in carrying one or more sequences of one or more instructions to the processor 404 for execution. For example, the instructions may initially be carried on a disk or solid-state drive of a remote computer. The remote computer may load the instructions into its dynamic memory and send the instructions via a telephone line using a modem. A modem located locally in the computer system 400 may receive the data on the telephone line and convert the data into an infrared signal using an infrared transmitter. An infrared detector may receive the data carried in the infrared signal and appropriate circuitry may place the data on the bus 402. The bus 402 carries the data to the main memory 406, from which the processor 404 retrieves and executes the instructions. The instructions received by the main memory 406 may optionally be stored on the storage device 410 before or after being executed by the processor 404.
[0081] Computer system 400 also includes a communication interface 418 coupled to bus 402. Communication interface 418 provides a two-way data communication coupled to a network link 420, wherein network link 420 is connected to a local network 422. For example, communication interface 418 can be an integrated services digital network (ISDN) card, a cable modem, a satellite modem, or a modem that provides a data communication connection to a corresponding type of telephone line. As another example, communication interface 418 can be a LAN card that provides a data communication connection to a compatible local area network (LAN). Wireless links can also be implemented. In any such implementation, communication interface 418 sends and receives electrical, electromagnetic or optical signals that carry digital data streams representing various types of information.
[0082] The network link 420 typically provides data communications to other data devices through one or more networks. For example, the network link 420 can provide a connection to a host computer 424 or to data equipment operated by an Internet Service Provider (ISP) 426 through a local network 422. The ISP 426, in turn, provides data communication services through a global packet data communication network now commonly referred to as the "Internet" 428. Both the local network 422 and the Internet 428 use electrical, electromagnetic, or optical signals that carry digital data streams. The signals through the various networks and the signals on the network link 420 and through the communication interface 418 are example forms of transmission media, where these signals carry digital data to or from the computer system 400.
[0083] Computer system 400 can send messages and receive data, including program code, through network(s), network link 420 and communication interface 418. In the Internet example, server 430 can transmit request code for an application program through Internet 428, ISP 426, local network 422 and communication interface 418.
[0084] The received code may be executed by processor 404 as it is received, and / or stored in storage device 410 or other non-volatile storage for later execution.
[0085] In the foregoing specification, embodiments of the present invention have been described with reference to numerous specific details, which may vary from one implementation to another. Accordingly, the specification and drawings should be considered in an illustrative rather than a restrictive sense. The sole and exclusive indicator of the scope of the invention, and what the applicants intend as the scope of the invention, is the literal and equivalent range of the set of claims issuing from this application, in the specific form in which such claims issue, including any subsequent amendments.
Claims
1. One or more non-transitory machine-readable media storing instructions that, when executed by one or more processors, result in the performance of operations comprising: Determining that the last generated style sheet corresponding to a particular resource is out of date; as well as In response to the OK operation: generating an updated style sheet for the specific resource based at least on the value of at least one attribute among a plurality of values currently configured for a corresponding plurality of attributes of the specific resource, wherein generating the updated style sheet comprises modifying a style sheet template by replacing variable names with corresponding values associated with the at least one property of the particular resource, and Prior to the modification operation, variable names in stylesheet templates are not valid for evaluation as part of the effective stylesheet.
2. The one or more non-transitory machine-readable media of claim 1, the operations further comprising identifying the last generated style sheet by analyzing the particular resource.
3. The one or more non-transitory machine-readable media of claim 1, the operations further comprising identifying the last generated style sheet using a resource-to-style sheet mapping.
4. The one or more non-transitory machine-readable media of claim 1, wherein: Determining that the last generated style sheet corresponding to the particular resource is out of date includes determining whether a value of at least one resource attribute in the last generated style sheet does not match a current value of the at least one resource attribute in a data set including a current value.
5. The one or more non-transitory machine-readable media of claim 1, wherein: Determining that the last generated style sheet corresponding to the specific resource is out of date includes: determining whether a value of at least one resource attribute in the last generated style sheet does not match.
6. The one or more non-transitory machine-readable media of claim 1, wherein: Determining that the last generated style sheet corresponding to the specific resource is out of date includes: comparing (a) a first version number stored in association with the value of the at least one attribute and (b) a second version number stored in association with the last generated style sheet and corresponding to the value of the at least one attribute.
7. The one or more non-transitory machine-readable media of claim 1, wherein: Determining that the last generated style sheet corresponding to the particular resource is out of date includes comparing (a) a first hash value based on at least a portion of the multiple values currently configured for the corresponding multiple properties of the particular resource and (b) a second hash value based on at least a portion of the multiple values within the last generated style sheet.
8. The one or more non-transitory machine-readable media of claim 1, wherein: Determining that the last generated style sheet corresponding to the particular resource is out of date includes comparing (a) a first timestamp associated with receiving or storing the value of the at least one property and (b) a second timestamp associated with generation of the last generated style sheet.
9. The one or more non-transitory machine-readable media of claim 1, wherein: Determining that the last generated style sheet corresponding to the specific resource is out of date includes: checking one or more of a flag, metadata, or content of the last generated style sheet indicating whether the last generated style sheet is out of date.
10. The one or more non-transitory machine-readable media of claim 1, the operations further comprising modifying the particular resource to reference the updated style sheet.
11. A system for generating a style sheet during runtime, comprising: at least one device, including one or more hardware processors, The system is configured to perform operations comprising: Determining that a last generated style sheet corresponding to a particular resource is out of date; and In response to the OK operation: generating an updated style sheet for the specific resource based at least on the value of at least one attribute among a plurality of values currently configured for a corresponding plurality of attributes of the specific resource, wherein generating the updated style sheet comprises modifying a style sheet template by replacing variable names with corresponding values associated with the at least one property of the particular resource, and Prior to the modification operation, variable names in stylesheet templates are not valid for evaluation as part of the effective stylesheet.
12. The system of claim 11, wherein: The operations also include identifying the last generated style sheet by analyzing the specific resource.
13. The system of claim 11, wherein: The operations also include identifying the last generated style sheet using a resource-to-style sheet mapping.
14. The system of claim 11, wherein: Determining that the last generated style sheet corresponding to the particular resource is out of date includes determining whether a value of at least one resource attribute in the last generated style sheet does not match a current value of the at least one resource attribute in a data set including current values.
15. The system of claim 11, wherein: Determining that the last generated style sheet corresponding to the particular resource is out of date includes determining whether a value of at least one resource attribute in the last generated style sheet does not match.
16. The system of claim 11, wherein: Determining that the last generated style sheet corresponding to the specific resource is out of date includes: comparing (a) a first version number stored in association with the value of the at least one attribute and (b) a second version number stored in association with the last generated style sheet and corresponding to the value of the at least one attribute.
17. The system of claim 11, wherein: Determining that the last generated style sheet corresponding to the particular resource is out of date includes comparing (a) a first hash value based on at least a portion of the multiple values currently configured for the corresponding multiple properties of the particular resource and (b) a second hash value based on at least a portion of the multiple values within the last generated style sheet.
18. The system of claim 11, wherein: Determining that the last generated style sheet corresponding to the particular resource is out of date includes comparing (a) a first timestamp associated with receiving or storing the value of the at least one property and (b) a second timestamp associated with generation of the last generated style sheet.
19. The system of claim 11, wherein: Determining that the last generated style sheet corresponding to the particular resource is out-of-date includes examining one or more of a flag, metadata, or content of the last generated style sheet that indicates whether the last generated style sheet is out-of-date.
20. The system of claim 11, wherein: The operations also include modifying the particular resource to reference the updated style sheet.
21. A method for generating a style sheet during runtime, comprising: Determining that the last generated style sheet corresponding to a particular resource is out of date; and In response to the OK operation: generating an updated style sheet for the specific resource based at least on the value of at least one attribute among a plurality of values currently configured for a corresponding plurality of attributes of the specific resource, wherein generating the updated style sheet comprises modifying a style sheet template by replacing variable names with corresponding values associated with the at least one property of the particular resource, and where, prior to the modification operation, the variable name in the stylesheet template is not valid for evaluation as part of the effective stylesheet, The method is performed by at least one device including one or more hardware processors.
22. A computer program product comprising instructions which, when executed by one or more processors, cause the method of claim 21 to be performed.
Citation Information
Patent Citations
Generating style sheets during runtime
US20170116164A1
Using application cache to update resources of installed applications
CN104106048A
Dynamically Updating Webpage Style
US20110161803A1
