摘要 |
A method and apparatus are provided for creating and abstract machine instruction sequence from one or more stylesheets (12) and using this sequen ce to perform a transformation on one or more input documents (20). The method includes the steps of parsing the stylesheet and compiling it into the sequence of abstract machine instructions. The instructions are executed an the abstract machine (18) with input document(s) (20) to produce one or more output documents (22). More particularly, the method is directed to processi ng one or more XML documents (20) where the processing includes a plurality of stylesheets (12) using an abstract machine (18). The method includes the ste ps of reading a stylesheet (14) of the plurality of stylesheet (12), compiling the stylesheet (16) into a set of abstract machine instructions specialized for stylesheet processing and executing the instructions on the abstract machine (18).
|