A Look at How Scala Compiles to Java Consider this contrived example, based on an example from Beginning Scala. The point of the snippet was to demonstrate the congruency between using the...
A better approach is to parse the XSLT stylesheet into memory once, compile it to machine-format, and then preserve that machine representation in memory for repeated use. This is called stylesheet compilation and is no different in concept than the compilation of any programming language.