Further, the invention is not limited to transforming tabular-style data, but may be implemented to transform any data, including text, markup, and other documents according to an annotated stylesheet that provides a mapping between the stylesheet and the output document.