: in css
It sounds rather as if Calibre is using namespaces without defining them. You might want to look at the xmlns declaration at the start of the (x)html files within an epub as an example of a namespace definition. If you are going to use template:whatever for instance, you need to have a namespace definition for template.
Perhaps you might want to blame Calibre rather than Kobo for your issue.