A method and computer program product is provided for generating XML
documents using a script language that extends the capabilities of XML.
The script language includes control statements for including data
content and style information from a plurality of sources. One or more
scripts may be developed that includes script language control
statements. A script processor processes the scripts and generates a
content document and a style document. The content document specifies the
content to be included in the XML document, and the style document
specifies the style for displaying the content in the XML document. One
set of program instructions transforms the content document and the style
document into an XML document. Another set of program instructions
converts the XML document to an output document for a selected type of
display. The script language and script processor provide facilities for
gathering content and style information from a plurality of sources.
Numerous scripts may be generated to override and/or extend information
in one or more of the other scripts, thereby allowing a developer to
customize selected portions of the output document while using shared
content and style for the remaining portions of the output document.