title: MarkLogic 8 transformation in JavaScript
body: <p>I'm trying to use a JavaScript transform on a JavaScript REST ext. I can't get the transform to be used. To check this, I write a trace log line as seen in the scripts below.
  I've had trouble uploading the transform with Roxy so I used a CURL command for the transform. The command is included.</p>
  
  <p>When I call this URL, I expect 'transform running' to show up in my log file:<br>
      <a href="http://localhost:12040/v1/resources/somethingext?rs:yes=no&amp;transform=something" rel="nofollow">http://localhost:12040/v1/resources/somethingext?rs:yes=no&amp;transform=something</a></p>
  
  <p>All I get is the 'ext running'.</p>
  
  <p>somethingext.sjs:</p>
  
  <pre><code>/**
   * @name somethingext 
   * This REST extentsion provides SOAP service for the shipment data
   */
  
  function post(context, params, input) {
      try {
        xdmp.trace('somethingext', 'ext running ');
        // or: xdmp.log('transform');
     }
     catch(err){
     }
  }
  
  // Main
  exports.POST = post;
  </code></pre>
  
  <p>something-transform.sjs:  </p>
  
  <pre><code>function something(context, params, content) {
      var mutableDoc = content.toObject();
      xdmp.trace('something', 'transform running');
  };
  
  exports.transform = something;
  </code></pre>
  
  <p>CURL used to upload transform:</p>
  
  <pre><code>curl --anyauth --user admin:admin -X PUT -i \
      --data-binary @"./something-transform.sjs" \
      -H "Content-type: application/vnd.marklogic-javascript" \
      'http://localhost:12040/LATEST/config/transforms/something'
  </code></pre>