 
       $scope.publishing = false
       $scope.success = true
-      $scope.mapping = $scope.sml.toSml mapping
-      # $scope.transform.publish $scope.mapping
+      $scope.currentMapping = $scope.sml.toSml mapping
+      # $scope.transform.publish $scope.currentMapping

        properties: $scope.rdf.selectedProperties
        literals: $scope.rdf.propertyLiteralSelection
        literalTypes: $scope.rdf.propertyLiteralTypes

      $scope.mapping = $scope.sml.toSml mapping
      w = $window.open ''
      w.document.open()
      w.document.write '<pre>' + $scope.mapping + '</pre>'
      w.document.close()

    $scope.publish = () ->

        literalTypes: $scope.rdf.propertyLiteralTypes

      w = $window.open ''
      $scope.currentMapping = $scope.sml.toSml mapping
      $scope.transform.getDumpUrl $scope.currentMapping
        .then (url) ->
          w.location = url

