         tagHelper(
           'date',
           @get('datePublished'),
-          {'event': 'publication'},
+          {'opf:event': 'publication'},
           true
         )
           
       @on 'change:language', (model, value, options) =>
-        tagHelper('dc:language', value, {type: "dcterms:RFC4646"})
+        tagHelper('dc:language', value, {'xsi:type': "dcterms:RFC4646"})
       @on 'change:description', (model, value, options) =>
         tagHelper('dc:description', value)
       @on 'change:rights', (model, value, options) =>

        tagGroupHelper(
          'dc:subject',
          value,
          {type: "http:\\github.com/Connexions/rhaptos.cnxmlutils/rhaptos/cnxmlutils/schema"}
        )
      @on 'change:rightsHolders', (model, value, options) =>
        tagGroupHelper(


        container = @$xml.find('metadata')
        selector = tagName.replace(':', '\\:')
        template = @$xml[0].createElement(tagName)
 
        _.forIn attributes, (value, key) ->
          selector += "[#{key.replace(':', '\\:')}=\"#{value}\"]"
          template.setAttributeNS('http://www.idpf.org/2007/opf', key, value)

        existing = @$xml.find(selector).remove()

        _.each values, (value) ->
          element = template.cloneNode()
          container.append('    ')
          element.textContent = value
          container[0].appendChild(element)
          container.append('\n')

        setNavModel({})
