1. 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; 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.