error on unknown variable xmlsource
added extent to default template
Merge branch 'dev'

command line error and extent in template