Wrapper Transform for Resolving XML External Entity References

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

XML-based content management systems face issues with external entity resolution, particularly when standardized XSLT transforms generate relative links that become unresolvable when documents are accessed outside their original environment, leading to 'broken' links and requiring impractical solutions like packaging numerous documents or modifying third-party transforms.

Innovation Solution

A method involving a wrapper transform dynamically modifies the source XSLT transform to generate resolvable external entity references by converting relative paths to absolute URLs, allowing for seamless access and display of documents across different environments without altering the original transforms.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Ease of manufacture

If standardized XSLT transforms are used to transform XML documents, then the transformation process is simplified and standardized, but external entity references become unresolvable when documents are accessed outside their original environment

Engineering Contradiction:
Improveease of transformationVSAvoidlink resolvability
Core Design Contradiction:
Ease of manufactureVSReliability

Solution Approach 1:

A catalog file is introduced as an intermediary component that maps relative paths from the standardized XSLT output to absolute URLs. The catalog file acts as a mediator between the transformation process and the external entity resolution, allowing the standardized transform to generate relative paths while the catalog provides the mapping to resolvable absolute URLs for external entities.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system performs preliminary action by pre-defining the mapping between relative paths and absolute URLs in a catalog file before the transformation is executed. This allows the standardized XSLT to work with relative paths while the catalog is already prepared to resolve these paths to absolute URLs when needed, eliminating the need to modify the original standardized transform.

Inventive Principle:
Principle #10Preliminary action

2Device complexity

If relative paths are used in transformed HTML output, then the transformation is simpler and follows standards, but links fail to resolve when documents are viewed in web-based CMS environments

Engineering Contradiction:
Improvetransformation complexityVSAvoidlink functionality
Core Design Contradiction:
Device complexityVSEase of operation

Solution Approach 1:

The catalog file serves as an intermediary that bridges the gap between relative paths generated by simple standardized transforms and the absolute URLs needed for web-based access. This allows the transformation process to remain simple while the catalog handles the complexity of path resolution transparently.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system enables self-service by allowing the standardized XSLT transform to generate relative paths without modification, while the catalog file automatically provides the resolution service. The transform doesn't need to know about web environments or absolute paths - it simply generates relative paths, and the catalog self-service mechanism handles the conversion to absolute URLs when entities are referenced.

Inventive Principle:
Principle #25Self-service

3Reliability

If custom XSLT transforms are created to generate absolute URLs, then link resolvability is improved, but maintenance becomes difficult when original transforms are updated by external organizations

Engineering Contradiction:
Improvelink resolvabilityVSAvoidtransform maintenance
Core Design Contradiction:
ReliabilityVSEase of repair

Solution Approach 1:

The solution segments the transformation system into two independent parts: the standardized XSLT transform (which remains unchanged and is maintained by external organizations) and the catalog file (which handles absolute URL mapping). This segmentation allows the transform to remain simple and standardized while the catalog independently manages the complexity of URL resolution, making maintenance easier as only the catalog needs to be updated when path mappings change.

Inventive Principle:
Principle #1Segmentation

Solution Approach 2:

The catalog file acts as an intermediary layer between the standardized transform and the external entity resolution. This allows the original standardized transform to remain unchanged and easily maintainable, while the catalog handles the adaptation to different environments. When updates are needed, only the catalog requires modification, not the core transformation logic.

Inventive Principle:
Principle #24Intermediary (Mediator)

4Reliability

If all referenced documents are packaged with the main document, then link resolvability is ensured, but the system complexity and storage requirements increase significantly

Engineering Contradiction:
Improvelink resolvabilityVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

Instead of packaging all referenced documents, the catalog file serves as a lightweight intermediary that provides URL mapping information. This avoids the complexity of managing and distributing thousands of associated documents while still ensuring link resolvability through the catalog's absolute URL mappings.

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The solution extracts only the essential path mapping information from the complex document packaging approach and stores it in a separate catalog file. This extracts the critical functionality (path resolution) from the cumbersome packaging requirement, allowing links to be resolved without actually packaging and distributing all referenced documents.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS7752542B2Dynamic external entity resolution in an XML-based content management system
Publication Date: 2010.07.06 X CORP
  • US7752542B2 patent drawing
  • US7752542B2 patent drawing
  • US7752542B2 patent drawing

AI summary

Embodiments of the invention provide a method, system, and article of manufacture for dynamically resolving external entity references in a document managed by a content management system (CMS). In one embodiment, a wrapper transform may be applied to a source transform to generate a modified source transform. The modified source transform may be configured to generate resolvable external entity references when applied to a document being accessed from the CMS. The modified source transform may be applied to the document being checked out to generate an output document, and the output document may be returned in response to an access request.