Document template inheritance