Patent ID: 7328403
Filing Date: 2008-02-05
Classification: G06F

Abstract:
1. A method comprising: characterizing at least a portion of an expression in a stylesheet as evaluatable at a phase wherein the phase is one of a compile phase, a parse phase, or a transformation phase of applying the stylesheet to a document to transform the document in a document transformation appliance; applying at least a portion of the expression to the document in the phase determined in the characterizing; combining results from applying the at least a portion of the expression and from applying other expressions to the document to generate a transformed document; and outputting the transformed document or saving the transformed document to memory; wherein the at least a portion of the expression: is evaluatable at the compile phase only if the at least a portion of the expression includes no predicates and no ancestor/descendent references, is evaluatable in the parse phase if the at least a portion of the expression includes no predicates referring to the current node or a following sibling node, and no ancestor/descendent references, and is evaluatable in the transformation phase if the at least a portion of the expression includes a predicate or ancestor element reference; wherein applying the at least a portion of the expression comprises applying a first and a remaining portion of the expression, wherein the first portion is evaluatable during the parse phase and is applied during the parse phase, and wherein the remaining portion is evaluatable during the transformation phase.