Currently OntClassMatcher has only 2 priority levels for templates: templates from the main sitemap have higher priority than those from the imported ontologies. The import tree/hierarchy is not taken into account. The mechanism should probably be more like the XSLT import precendence:
http://www.w3.org/TR/xslt20/#dt-import-precedence
This issue probably also involves some kind of default template rules, such as those in the GP vocabulary. Here's the equivalent in XSLT: http://www.w3.org/TR/xslt20/#built-in-rule
Currently
OntClassMatcher
has only 2 priority levels for templates: templates from the main sitemap have higher priority than those from the imported ontologies. The import tree/hierarchy is not taken into account. The mechanism should probably be more like the XSLT import precendence: http://www.w3.org/TR/xslt20/#dt-import-precedence