xlint: check whether template exists.