Need a little clarificationYou say you can't get the OOTB templates to work but in the next paragraph you say you're able to get the OOTB to work.Which is it? are you able to get the OOTB examples to work? Or is it when you add your custom code to the OOTB examples they start failing? If the latter is the case then most likely you have errors in your custom code.The best thing to do is strip the templates down to the basics and slowly add pieces till you run into the error and then you've narrowed down where your templates are blowing up.
Are you using local users or LDAP users ? If you have LDAP users with non-os users defined they must use the XSL templates not PT templates.Check iwhome/conf/roles/user_database.xml