Modify

Ticket #26 (new enhancement)

Opened 4 years ago

Last modified 3 years ago

Add namespace filters

Reported by: jgou Owned by: jgou
Priority: minor Milestone: 0.5
Component: universe/kauri-template Version: trunk
Keywords: Cc:

Description (last modified by jgou) (diff)

We should provide namespace filters, for the following use cases:

  1. strip xhtml namespace when output format is html
    • if the default namespace is xhtml, then the html tags will not be recognized (<br> is indeed not the same as <xhtml:br>) by the html serializer (and possibly all who's next in the chain, including the browser).
    • This can be a bit annoying when you write your templates in xhtml, but want to publish it as html (because IE7 doesn't support xhtml or ...).
  2. add missing xmlns attributes
    • e.g. when referencing an above declared variable or ...
    • maybe have a look at the XmlSerializer in Daisy
  3. drop unneccesary namespace declarations
    • e.g. the ktl-namespace isn't used anymore after leaving the template engine

Attachments

Change History

comment:1 Changed 4 years ago by jgou

  • Description modified (diff)

comment:2 Changed 3 years ago by mpo

  • Milestone changed from 0.4 to 0.5

Somewhat related to #145
Beyond 0.4 scope

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.