Method and apparatus for document transformation based on attribute grammars and attribute couplings
First Claim
1. A method for converting a first document to a second document, the method comprising the steps of:
- specifying the first document in terms of a first extended attribute grammar;
specifying the second document in terms of a second extended attribute grammar;
specifying an extended attribute coupling grammar of the first and second extended attribute grammars; and
transforming the first document into the second document based on the extended attribute coupling grammar.
6 Assignments
0 Petitions
Accused Products
Abstract
A method and apparatus are provided for converting a first document to a second document. The first document is in a first extended attribute grammar, while the second document is in a second extended attribute grammar. An extended attribute coupling grammar couples the first and second extended attribute grammars. The first document is converted to a first tree, which is partially copied to a first copy. The first copy is completed by evaluating it'"'"'s attribute with respect to the extended attribute coupling grammar. The first copy is then a partially attributed tree of the second document. The partially attributed tree is completed to form a second tree based on the second extended attribute grammar. The second tree is then converted to the second document.
-
Citations
20 Claims
-
1. A method for converting a first document to a second document, the method comprising the steps of:
-
specifying the first document in terms of a first extended attribute grammar; specifying the second document in terms of a second extended attribute grammar; specifying an extended attribute coupling grammar of the first and second extended attribute grammars; and transforming the first document into the second document based on the extended attribute coupling grammar. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15)
-
-
16. An apparatus for transforming a first document into a second document, comprising:
-
means for determining a first extended attribute grammar corresponding to the first document; means for determining a second extended attribute grammar corresponding to the second document; means for determining an extended attribute coupling grammar coupling the first extended attribute grammar and the second extended attribute grammar; means for generating a first tree from the first extended attribute grammar and the first document; means for generating a second tree from the first tree and the extended attribute coupling grammar; and means for converting the second tree into the second document. - View Dependent Claims (17, 18, 19, 20)
-
Specification