old_contents: 
  import os
  from cc.license._lib.interfaces import ILicenseFormatter
  import zope.interface
  from genshi.template import TemplateLoader
  
  class HTMLFormatter(object):
      zope.interface.implements(ILicenseFormatter)
  
      def __init__(self):
          self.loader = TemplateLoader(
                            os.path.join(os.path.dirname(__file__),'templates'),
                            auto_reload=False)
          self.tmpl = self.loader.load('html_rdfa.xml')
  
      def __repr__(self):
          return "<LicenseFormatter object '%s'>" % self.id
  
      def __str__(self):
          return '(%s)' % self.title
  
      @property
      def id(self):
          return 'html+rdfa'
  
      @property
      def title(self):
          return "HTML + RDFa formatter"
  
      def format(self, license, work_graph=None, locale='en'):
          """Return an HTML + RDFa string serialization for the license,
              optionally incorporating the work metadata and locale."""
          stream = self.tmpl.generate(license=license, locale=locale)
          return stream.render('xhtml')
  
new_contents: """
  Formatters take a License instance and a dictionary of work metadata about
  the licensed work. The keys of this work_dict are as follows:
  
   - format
     The format of the work, values can be one of:
       - Audio (Sound)
       - Video (MovingImage)
       - Image (StillImage)
       - Text (Text)
       - Interactive (InteractiveResource)
  
   - worktitle
     Title of work
  
   - attribution_name
     Attribute work to name
  
   - attribution_url
     Attribute work to URL
  
   - source_work
     Source work URL
  
   - more_permissions_url
     More permissions URL
  """
  
  import os
  from cc.license._lib.interfaces import ILicenseFormatter
  import zope.interface
  from genshi.template import TemplateLoader
  
  class HTMLFormatter(object):
      zope.interface.implements(ILicenseFormatter)
  
      def __init__(self):
          self.loader = TemplateLoader(
                            os.path.join(os.path.dirname(__file__),'templates'),
                            auto_reload=False)
          self.tmpl = self.loader.load('html_rdfa.xml')
  
      def __repr__(self):
          return "<LicenseFormatter object '%s'>" % self.id
  
      def __str__(self):
          return '(%s)' % self.title
  
      @property
      def id(self):
          return 'html+rdfa'
  
      @property
      def title(self):
          return "HTML + RDFa formatter"
  
      def format(self, license, work_dict=None, locale='en'):
          """Return an HTML + RDFa string serialization for the license,
              optionally incorporating the work metadata and locale."""
          stream = self.tmpl.generate(license=license, locale=locale)
          return stream.render('xhtml')
  
subject: Add information about work_dict.