Patent ID: 7458022

Claim:
An apparatus comprising: a computer accessible medium encoded with a plurality of instructions which, when executed, compile a stylesheet into one or more data structures, wherein the data structures include one or more expression trees representing expressions in the stylesheet, wherein the expressions select nodes in a corresponding source document tree structure and further wherein each expression has a corresponding body that specifies a portion of an output document structure to be instantiated for each matching node; and a hardware circuit coupled to receive the data structures and a document, wherein the hardware circuit is configured to perform at least a portion of transforming the document as specified in the stylesheet using the data structures and wherein the hardware circuit is configured to apply the expressions represented in the expression trees to the document to identify nodes in the document that satisfy the expressions, and further wherein the hardware circuit is configured to cause the transformed document to be stored in a memory device, wherein the plurality of instructions, when executed, assign serial numbers to each node identifier in the stylesheet, and wherein the data structures include one or more symbol tables stored in memory coupled with the hardware circuit that map the node identifiers to the serial numbers.