Style Compressor Consolidating Web Document Attributes
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Web documents, especially machine-generated ones, suffer from inefficiencies due to redundant style attributes across multiple elements, leading to increased document size, storage requirements, bandwidth usage, and processing demands.
Innovation Solution
A style compressor collects and compresses style attributes into a central repository, replacing redundant references with class attributes and using algorithms like Lempel-Ziv to minimize the number of attributes, resulting in a more compact and organized document.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If style attributes are assigned to each element in web documents, then each element can have its styles defined, but the document size increases and organization becomes inefficient
Solution Approach 1:
The patent merges duplicate style attributes into a single centralized style repository. Instead of repeating style attributes across multiple elements, the system collects all unique style attributes once and references them through class attributes, thereby reducing document size while maintaining the ability to define styles for all elements.
Solution Approach 2:
The patent extracts style attributes from individual element definitions and consolidates them into a separate central style repository. This extraction process removes redundant style information from the main document body, reducing overall document size while preserving style definition capabilities through references.
2Reliability
If redundant style attributes are included in web documents, then all style information is preserved, but storage requirements and bandwidth usage increase
Solution Approach 1:
The system merges identical style attribute sets into a single entry in the central style repository. By detecting when multiple elements have the same style attributes and consolidating them, the system maintains complete style information while eliminating redundant copies, thereby reducing storage and bandwidth requirements.
Solution Approach 2:
The patent uses class attributes as references or copies that point to the centralized style repository. Instead of storing full style attribute copies for each element, the system creates reference copies through class attributes, maintaining style information completeness while significantly reducing the actual data stored and transmitted.
3Adaptability or versatility
If style attributes are repeated across multiple elements, then each element can be independently styled, but processing requirements at server and client increase
Solution Approach 1:
The patent merges style attribute definitions into a single centralized location, reducing the amount of data that needs to be processed at both server and client. Elements still maintain styling flexibility through class attribute references, but the processing burden is reduced because the system only needs to process the unique style definitions once rather than repeatedly processing duplicate attributes.
4Quantity of substance
If a central style repository is created to collect all style attributes, then redundancy is eliminated, but document organization complexity increases
Solution Approach 1:
The patent segments the document into two distinct parts: a central style repository containing all unique style attributes and the main document body containing element definitions with class attribute references. This segmentation organizes the complexity by separating style definition responsibilities from element definition responsibilities, making the overall structure more manageable despite the increased number of components.
Data Source
AI summary
A style compressor for improving compression of a web document collects all the style attributes referenced by elements of the web document into a central style repository. The style compressor replaces each reference by each of the elements with a class attribute assigned in the central style repository to the replaced style attributes. Next, the style compressor organizes the style attributes in the central style repository and compresses the style attributes into a minimized selection of class attributes each referencing at least one of the style attributes. The style compressor updates the elements of the web document to reference one or more of the minimized selection of class attributes in the central style repository to produce a shorter, more efficiently organized web document.


