<klip>
   <identity>
      <title>
         API: Engines.Data.getScratch()
      </title>
   </identity>
   <locations>
      <contentsource>
         http://www.serence.com/support/samples/scratch.xml
      </contentsource>
      <icon>
         http://www.klipfolio.com/static/klips/klipfolio/sample_icon.png
      </icon>
      <banner>
         http://www.klipfolio.com/static/klips/klipfolio/sample_banner.png   
      </banner>
   </locations>
   <style>
      
      my_title {
         type: scratch;		/* scratch */
         name: 'my_title';
      }
      
      my_icon {
         type: scratch;		/* scratch */
         name: 'my_icon';
      }
      
      item {
         type: item;
         definition: 'book,author';
      }
      
      book {
         itemcol: 1;
         noterow: 1;
      }
      
      author {
         itemcol: 2;
         noterow: 2;
      }
   </style>
   <klipscript>
   <![CDATA[
   
   function onRefresh() {
      var result;
      result = Engines.Data.process (Prefs.contentsource);
      
      trace( "my_icon: "+Engines.Data.getScratch( "my_icon" )+"\r\n" );
      trace( "my_title: "+Engines.Data.getScratch( "my_title" )+"\r\n" );
      
      Items.icon = Engines.Data.getScratch( "my_icon" );
      Prefs.title = Engines.Data.getScratch( "my_title" );
   }
   
   ]]>
   </klipscript>
</klip>
