add templates sequence to InputProvider
add template properties to Document and DocumentTree