Check the bindings. If you need access to the DTML namespace, you must explicitly set it to be '_' as the default is None.