Warning: Can't synchronize with the repository (/project/bknr/svn does not appear to be a Subversion repository.). Look in the Trac log for more information.

Ticket #28 (new enhancement)

Opened 7 years ago

Improve templater namespace handling

Reported by: hhubner Owned by: hhubner
Priority: major Milestone: bknr-reloaded
Component: bos Version:
Keywords: Cc:

Description

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.

Note: See TracTickets for help on using tickets.