   if id != ""
     $("#save").find("span").html("Update");
 
-    jsRoutes.controllers.Application.xml(id,revision).ajax(
+    jsRoutes.controllers.Application.xml(id, revision).ajax(
       dataType: 'text'
       success: (data) ->
         xmleditor.getSession().setValue data
         $("#xml").val(data)
     );
-    jsRoutes.controllers.Application.xsl(id,revision).ajax(
+    jsRoutes.controllers.Application.xsl(id, revision).ajax(
       dataType: 'text'
       success: (data) ->
         xsleditor.getSession().setValue data

  )

xmleditor = ace.edit "xmleditor"
xmleditor.setTheme  "ace/theme/monokai"
xmleditor.getSession().setMode  "ace/mode/xml"
xmleditor.getSession().setValue $("xml").val()
xmleditor.getSession().on(
  'change'

)

resulteditor = ace.edit "resulteditor"
resulteditor.setTheme "ace/theme/monokai"
resulteditor.getSession().setMode "ace/mode/xml"

$("#autotransform").click ->
  autotransform = !autotransform;
