摘要 |
PURPOSE: An electronic document edition and conversion method and system is provided to process an XML document by formatting an XML document with formatting data described in an XSL(Extensible Style Sheet Language). CONSTITUTION: The system comprises a document module(200), a processor(300), and an engine(400). The document module(200) inputs or outputs an XML document(210), an XSL style sheet(220) and a formatted document. The processor(300) includes a parser(310), a source tree(320), and a result tree(330). The parser(310) parses the XML document(210) and the XSL style sheet(220) into a source tree(320). The engine(400) includes a transformation process(410), a style processor(420), and a formatter(430). The transformation processor(410) converts the source tree(320) into a result tree(330) by using a parsing result of the XSL style sheet. The style processor(420) obtains an FOT(Flow Object Tree) type result by using the formatting data of the XSL style sheet. The formatter(430) browses the FOT type result by using a formatting module while maintaining the FOT.
|