Claims
- 1. A method for generating an extensible stylesheet, the method comprising:
receiving a target file in a first markup language; receiving at least one source file in a second markup language; identifying dynamic objects in the target file; associating each of the dynamic objects in the target file with an element in the at least one source file by a meta-tag; replacing the each of the dynamic objects with the meta-tag; and generating the extensible stylesheet in reference to the target file.
- 2. The method as recited in claim 1, wherein said receiving a target file in a first markup language comprises displaying the target file in an authoring tool that is capable of displaying the target file in a desired manner.
- 3. The method as recited in claim 2, wherein the target file includes static contents and the dynamic objects.
- 4. The method as recited in claim 3, wherein the first markup language is selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 5. The method as recited in claim 5, wherein the second markup language is selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 6. The method as recited in claim 3 further comprising displaying a presentation of the target file, wherein the presentation includes the static contents and a number of the dynamic objects.
- 7. The method as recited in claim 6, wherein said receiving at least one source file in a second markup language comprises:
receiving a definition file including document type definitions (DTD); associating at least one of the definitions in the definition file with one of the dynamic objects; and generating a tree structure from the target file, wherein the tree includes nodes, each of the nodes corresponds to one of the dynamic objects in the displayed presentation.
- 8. The method as recited in claim 7, further comprising traversing the tree structure to determine information for the meta-tag.
- 9. The method as recited in claim 8, wherein said generating the extensible stylesheet in reference to the target file comprises generating a resultant file in a third markup language, the resultant file including at least an information segment including a declaration and the information for the meta-tag.
- 10. The method as recited in claim 9, wherein the target file can be displayed by displaying the at least one source file together with the extensible stylesheet.
- 11. A method for generating an extensible stylesheet, the method comprising:
receiving a target file in a markup language, the target file including a plurality of dynamic objects; receiving a structure tree; each node of the structure tree corresponding to one of the dynamic objects in the target file; associating each of the dynamic objects in the target file with an element in at least one source file by a meta-tag; and generating the extensible stylesheet in reference to the target file.
- 12. The method as recited in claim 11, wherein said receiving a target file in a markup language comprises displaying the target file in an authoring tool that is capable of displaying the target file in a desired manner.
- 13. The method as recited in claim 12, wherein each of the dynamic objects is associated with a corresponding element in one or more source files presented in a structure tree.
- 14. The method as recited in claim 13, wherein the markup language is selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 15. The method as recited in claim 14, wherein the structure tree is built using a markup language selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 16. The method as recited in claim 11, wherein said associating each of the dynamic objects in the target file with an element comprises:
associating the each of the dynamic objects with one of the nodes in the structure tree; and traversing the structure tree to obtain related information for the meta-tag, wherein the related information includes an association between the each of the dynamic objects and the element in the at least one source file.
- 17. The method as recited in claim 11, wherein said associating each of the dynamic objects in the target file with an element comprises:
copying each of the dynamic objects unto one of the nodes in the structure tree; and traversing the structure tree to obtain related information for the meta-tag of each of the dynamic objects, wherein the related information includes an association between the each of the dynamic objects and the element in the at least one source file.
- 18. The method as recited in claim 11, wherein said associating each of the dynamic objects in the target file with an element comprises:
copying the element from the at least one source file to the each of the dynamic objects via one of the nodes in the structure tree; and traversing the structure tree to obtain related information for the meta-tag of each of the dynamic objects, wherein the related information includes an association between the each of the dynamic objects and the element in the at least one source file.
- 19. A method for generating an extensible stylesheet, the method comprising:
receiving a target file in a first markup language, the target file including a plurality of dynamic objects, at least two of the dynamic objects related to an element in a source file in a second markup language; providing a structure tree corresponding to one or more source files including the source file, each node of the structure tree corresponding to one of the dynamic objects in the target file; associating respectively the dynamic objects with the source file by a plurality of meta-tags via the structure tree; identifying corresponding ones of the meta-tags for the at least two of the dynamic objects related to the same element in the source file, wherein the corresponding ones of the meta-tags is labeled by a different identifier; and generating the extensible stylesheet in reference to the target file.
- 20. The method as recited in claim 19, wherein the first markup language is selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 21. The method as recited in claim 20, wherein the second markup language is selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 22. The method as recited in claim 19, wherein said associating respectively the dynamic objects with the source file by a plurality of meta-tags via the structure tree comprises:
replacing each of the dynamic objects with one of the meta-tags; and traversing the structure tree to obtain related information for each of the meta-tags, wherein the related information includes an association between the each of the dynamic objects and an element in the at least one source file.
- 23. The method as recited in claim 19, wherein said associating respectively the dynamic objects with the source file by a plurality of meta-tags via the structure tree comprises:
copying each of the dynamic objects unto one of the nodes in the structure tree; and traversing the structure tree to obtain related information for each of the meta-tags, wherein the related information includes an association between the each of the dynamic objects and an element in the at least one source file.
- 24. The method as recited in claim 19, wherein said identifying corresponding ones of the meta-tags for the at least two of the dynamic objects comprises inserting the different identifier in each of declarations for the corresponding ones of the meta-tags.
- 25. The method as recited in claim 24, wherein the different identifier is selected from a group consisting of a numeral, a character, a text and a alphanumeric symbol.
- 26. An apparatus for generating an extensible stylesheet, the apparatus comprising:
a display screen; first memory for storing code as an authoring tool; second memory for storing code as a software module; a processor, coupled to the first and second memory, when instructed to execute the authoring tool on a target file in a first markup language, causing the target file displayed as an output presentation on the display screen, wherein the output presentation includes a plurality of dynamic objects, each of the objects referring to one of elements in one or more source files in a second markup language, and a structure tree pertaining to the source files is then retrieved, each node of the structure tree corresponding to one of the dynamic objects in the target file; and wherein the software module is executed by the process to perform operations of:
associating each of the dynamic objects with one of elements in the one or more source files by a meta-tag; traversing the structure tree to obtain related information for the meta-tag; and
generating the extensible stylesheet in reference to the target file.
- 27. The apparatus as recited in claim 26, wherein the first markup language is selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 28. The apparatus as recited in claim 27, wherein the second markup language is selected from a group consisting of Hypertext Markup Language (HTML), Extensible Markup Language (XML), Standard Generalized Markup Language (SGML) and Wireless Markup Language (WML).
- 29. A computer readable medium including at least computer program code to be executed in a computing device for generating an extensible stylesheet, the computer readable medium comprising:
program code for receiving a target file in a first markup language; program code for receiving at least one source file in a second markup language; program code for identifying dynamic objects in the target file; program code for associating each of the dynamic objects in the target file with an element in the at least one source file by a meta-tag; program code for replacing the each of the dynamic objects with the meta-tag; and program code for generating the extensible stylesheet in reference to the target file.
- 30. The method as recited in claim 29, wherein the program code for receiving a target file in a first markup language comprises program code for displaying the target file in an authoring tool that is capable of displaying the target file in a desired manner.
- 31. A computer readable medium including at least computer program code to be executed in a computing device for generating an extensible stylesheet, the computer readable medium comprising:
program code for receiving a target file in a markup language, the target file including a plurality of dynamic objects; program code for receiving a structure tree, each node of the structure tree corresponding to one of the dynamic objects in the target file; program code for associating each of the dynamic objects in the target file with an element in at least one source file by a meta-tag; and program code for generating the extensible stylesheet in reference to the target file.
- 32. The computer readable medium as recited in claim 31, wherein the program code for receiving a target file in a markup language comprises program code for displaying the target file in an authoring tool that is capable of displaying the target file in a desired manner.
- 33. The computer readable medium as recited in claim 32, wherein each of the dynamic objects is associated with a corresponding element in one or more source files presented in a structure tree.
- 34. A computer readable medium including at least computer program code to be executed in a computing device for generating an extensible stylesheet, the computer readable medium comprising:
program code for receiving a target file in a first markup language, the target file including a plurality of dynamic objects, at least two of the dynamic objects related to an element in a source file in a second markup language; program code for providing a structure tree corresponding to one or more source files including the source file, each node of the structure tree corresponding to one of the dynamic objects in the target file; program code for associating respectively the dynamic objects with the source file by a plurality of meta-tags via the structure tree; program code for identifying corresponding ones of the meta-tags for the at least two of the dynamic objects related to the same element in the source file, wherein the corresponding ones of the meta-tags is labeled by a different identifier; and program code for generating the extensible stylesheet in reference to the target file.
CROSS-REFERENCE TO RELATED APPLICATION
[0001] This application claims the benefits of the following U.S. provisional applications:
[0002] U.S. Provisional Application No. 60/282,609, filed Apr. 9, 2001, and entitled “Method and Apparatus for Extensible Stylesheet Design Using Meta-Tag Information”;
[0003] U.S. Provisional Application No. 60/306,095, filed Jul. 17, 2001, entitled “Method and Apparatus for Extensible Stylesheet Design Using Meta-Tag Information and/or Associated Meta-Tag Information”;
[0004] U.S. Provisional Application No. 60/314,592, filed Aug. 23, 2001, entitled “Method and Apparatus for Extensible Markup Language Conversion and Extensible Stylesheet Design Using Meta-Tag Information and/or Associated Meta-Tag”; and
[0005] U.S. Provisional Application No. 60/349,957, filed Jan. 17, 2002, entitled “Extensible Markup Language Conversion and Stylesheet Design Using Meta-Tag Information and/or Associated Meta-Tag Information”; all of which are hereby incorporated by reference for all purposes. This application is also related to co-pending U.S. patent application Ser. No. 09/754,969, entitled “Method and apparatus for utilizing document type definition to generate structured documents,” which is hereby incorporated by reference.
Provisional Applications (4)
|
Number |
Date |
Country |
|
60282609 |
Apr 2001 |
US |
|
60306095 |
Jul 2001 |
US |
|
60314592 |
Aug 2001 |
US |
|
60349957 |
Jan 2002 |
US |