Template Transclusion for Valid HTML Composition

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional template processing systems cannot guarantee the validity of HTML documents when including templates within templates, as the nested templates are treated as HTML text, leading to potential errors in rendering.

Innovation Solution

A method and system for composing valid HTML documents using template transclusion, where a transcluded template file and a transcluding template file are processed to create valid HTML documents by building transcluded and transcluding template objects, ensuring data-type matching and proper rendering credentials are maintained.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If conventional template processing systems include templates within templates, then template reusability and web page composition flexibility are improved, but the validity of the generated HTML document cannot be guaranteed

Engineering Contradiction:
Improvetemplate composition flexibilityVSAvoidHTML document validity
Core Design Contradiction:
Adaptability or versatilityVSReliability

Solution Approach 1:

The patent segments the template processing into distinct phases: template definition phase (where templates are defined and validated independently) and template inclusion phase (where templates are instantiated and combined). By separating these phases and validating each template independently before combination, the system maintains HTML validity while enabling flexible template composition.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The patent performs preliminary validation of templates during the definition phase, before they are actually included or instantiated. This preliminary action ensures that each template is well-formed and valid before it is combined with others, preventing validity issues in the final HTML document while maintaining composition flexibility.

Inventive Principle:
Principle #10Preliminary action

2Adaptability or versatility

If nested templates are treated as HTML text in conventional systems, then template transclusion is enabled, but rendering errors occur and HTML validity is compromised

Engineering Contradiction:
Improvetemplate transclusion capabilityVSAvoidrendering errors
Core Design Contradiction:
Adaptability or versatilityVSObject-generated harmful factors

Solution Approach 1:

The patent introduces an intermediary validation mechanism that processes nested templates through a controlled interface. Instead of directly treating nested templates as raw HTML text, the system uses template objects and validation rules as intermediaries to ensure proper handling, preventing rendering errors while maintaining transclusion capability.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The patent creates template objects that are copies of the original template definitions, allowing these objects to be manipulated and combined without directly modifying the source HTML. This copying approach enables safe transclusion where nested templates can be instantiated and combined while maintaining the integrity of the original templates and ensuring valid HTML output.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS9021348B1Composition of templates using transclusion that guarantee a valid HTML document
Publication Date: 2015.04.28 GOOGLE LLC
  • US9021348B1 patent drawing
  • US9021348B1 patent drawing
  • US9021348B1 patent drawing

AI summary

A system, method and computer-readable medium for composing a valid HTML document using template transclusion. A system includes a memory configured to store a transcluded template file, the transcluded template file includes a transcluded template and a transcluding template file, the transcluding template file including a transcluding template, the transcluding template including credentials to the transcluded template. The system also includes a template building module configured to build a transcluded template object from the transcluded template and a transcluding template object from the transcluding template, where the transcluded template object and the transcluding template object generate a valid HTML document that is sent for display on a browser.