# US 2004/0205571 A1 · Method and system for stylesheet-centric editing

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2004/0205571 A1
- Document ID: US20040205571A1
- Status: Published application
- Kind: A1
- Application number: 10/095,827
- Filed: 2002-03-12
- Published: 2004-10-14
- Earliest claimed: 2002-03-12
- Assignees: International Business Machines Corporation
- Inventors: Sharon C. Adler; Anders LR Berglund; Thomas Joseph Brawn; Adam R. Clarke; Danielle Madeleine Cusson; Angel Luis Diaz; Douglas Charles Lovell; Olusola A. Omosaiye; Henry Retter; Kristoffer H. Rose; Jason A. Sholl
- Web page: https://patentgrep.com/patent/US20040205571A1

## CPC

- G06F 40/154: Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
- G06F 40/143: Markup, e.g. Standard Generalized Markup Language [SGML] or Document Type Definition [DTD]
- G06F 40/166: Editing, e.g. inserting or deleting
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method (and structure) for enacting changes to a document containing a template-based program that transforms tree-structured data from a first tree-structured data into a second tree-structured data, including providing an interface to permit selection of a document containing the template-based program, constructing a model of the template-based program in the selected document by parsing elements of the template-based program into a corresponding logical construct having a match condition and at least one generator, where the match condition determines whether an element in the first tree-structure data is to be processed by one or more of the at least one generator, and displaying a representation of the model to the user.

## Claims

### Claim 1

A method for enacting changes to a document containing a template-based program that transforms tree-structured data from a first tree-structured data into a second tree-structured data, said method comprising:
providing an interface to permit selection of a document containing said template-based program;
constructing a model of said template-based program in said selected document by parsing elements of said template-based program into a corresponding logical construct comprising a match condition and at least one generator, said match condition for determining whether an element in said first tree-structure data is to be processed by one or more of said at least one generator; and
displaying a representation of said model to said user.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
providing an interface allowing viewing said model and to allow manipulating or changing elements within said model; and
automatically updating said selected document containing said template-based program to reflect said manipulations or changes of said model elements.

### Claim 3 (depends on 1)

The method of claim 1, further comprising:
providing an interface to make a selection of a tree-structure-based input to be transformed by said template-based program on said selected document.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
constructing an application map comprising a listing of events of an execution of said transformation defined by said template-based program.

### Claim 5 (depends on 1)

The method of claim 1, wherein said template-based program comprises a tree-structure syntax.

### Claim 6 (depends on 5)

The method of claim 5, wherein said first tree-structured data and said second tree-structured data comprise extensible Mark-up Language (XML) data and said template-based program comprises an XSLT (extensible Style Language Transformations) stylesheet.

### Claim 7 (depends on 1)

The method of claim 1, as embodied in an application program running on a computer.

### Claim 8

An editor for enacting changes to a document containing a template-based program that transforms tree-structured data from a first tree-structured data into a second tree-structured data, said method comprising:
a user interface to permit selection of a document containing said template-based program;
model of said template-based program in said selected document constructed by parsing elements of said template-based program into a corresponding logical construct comprising a match condition and at least one generator, said match condition for determining whether an element in said first tree-structure data is to be processed by one or more of said at least one generator; and
a display for representing said model to said user.

### Claim 9 (depends on 8)

The editor of claim 8, further comprising:
a user interface allowing manipulations or changes to elements within said model; and
an updater to automatically update said selected document containing said template-based program to reflect said manipulations or changes of said model elements.

### Claim 10 (depends on 8)

The editor of claim 8, further comprising:
an interface to make a selection of a tree-structure-based input to be transformed by said template-based program on said selected document.

### Claim 11 (depends on 8)

The editor of claim 8, further comprising:
an application map file comprising an application map having a listing of events of an execution of said transformation defined by said template-based program.

### Claim 12 (depends on 8)

The editor of claim 8, wherein said template-based program comprises a tree-structure syntax.

### Claim 13 (depends on 12)

The editor of claim 12, wherein said first tree-structured data and said second tree-structured data comprise eXtensible Mark-up Language (XML) data and said template-based program comprises an XSLT (extensible Style Language Transformations) stylesheet.

### Claim 14 (depends on 8)

A computer system including the editor of claim 8.

### Claim 15

A signal-bearing medium tangibly embodying a program of machine-readable instructions executable by a digital processing apparatus to perform a method of enacting changes to a document containing a template-based program that transforms tree-structured data from a first tree-structured data into a second tree-structured data, said method comprising:
providing an interface to permit selection of a document containing said template-based program;
constructing a model of said template-based program in said selected document by parsing elements of said template-based program into a corresponding logical construct comprising a match condition and at least one generator, said match condition for determining whether an element in said first tree-structure data is to be processed by one or more of said at least one generator; and
displaying a representation of said model to said user.

### Claim 16 (depends on 15)

The signal-bearing medium of claim 15, said method further comprising: providing an interface for allowing viewing said model and to allow manipulating or changing elements within said model; and
automatically updating said selected document containing said template-based program to reflect said manipulations or changes of said model elements.

### Claim 17 (depends on 15)

The signal-bearing medium of claim 15, said method further comprising:
providing an interface to make a selection of a tree-structure-based input to be transformed by said template-based program on said selected document.

### Claim 18 (depends on 15)

The signal-bearing medium of claim 15, said method further comprising:
constructing an application map comprising a listing of events of an execution of said transformation defined by said template-based program.

### Claim 19 (depends on 15)

The signal-bearing medium of claim 15, wherein said template-based program comprises a tree-structure syntax.

### Claim 20 (depends on 19)

The signal-bearing medium of claim 19, wherein said first tree-structured data and said second tree-structured data comprise eXtensible Mark-up Language (XML) data and said template-based program comprises an XSLT (extensible Style Language Transformations) stylesheet.
