Implementing <xrl:function> and <xrl:apply>.