#28: Improve templater namespace handling -------------------------+-------------------------------------------------- Reporter: hhubner | Owner: hhubner Type: enhancement | Status: new Priority: major | Milestone: bknr-reloaded Component: bos | Version: Keywords: | -------------------------+-------------------------------------------------- The templater does not detect if there is a mismatch between a declared namespace URL and the URL used by templates. This makes tracking errors harder than it should be, as template functions are simply not expanded if the URLs do not match. Instead, the website definition should include a list of all namespaces known and warn if a template makes use of an unknown namespace.
When encountering tag with an explicit namespace, the template currently removes the namespace local-name before emitting the tag. This is clearly wrong, the local name should be passed through unmodified. This requires that the template parser determines the local names of namespaces of parsed templates and map the namespace URI back to the local name.
It may even be easier to abandon the XMLS representation and move to CLOS DOM, but maybe not.