Ticket #28 (new enhancement)
Opened 7 years ago
Improve templater namespace handling
|Reported by:||hhubner||Owned by:||hhubner|
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.