12. The method of claim 11 , wherein translating the “xsl:apply-templates” instruction into the set of XQuery conditional expressions includes: including, in each XQuery conditional expression, a template matching pattern from the XSLT stylesheet.
11. The method of claim 1 , wherein translating the XSLT stylesheet into the set of one or more XQuery language expressions includes: translating an “xsl:apply-templates” instruction into a set of XQuery conditional expressions to call an XQuery user-defined function, wherein the set of XQuery conditional expressions are based at least in part on a template matching pattern for a corresponding template in the XSLT stylesheet, and wherein the XQuery user-defined function is based at least in part on the body of the template.