You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by th...@apache.org on 2009/03/09 14:28:26 UTC

svn commit: r751674 - /forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/ajax-example.contract.xml

Author: thorsten
Date: Mon Mar  9 13:28:26 2009
New Revision: 751674

URL: http://svn.apache.org/viewvc?rev=751674&view=rev
Log:
Fixing markup and using cddata block to perserve spacing

Modified:
    forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/ajax-example.contract.xml

Modified: forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/ajax-example.contract.xml
URL: http://svn.apache.org/viewvc/forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/ajax-example.contract.xml?rev=751674&r1=751673&r2=751674&view=diff
==============================================================================
--- forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/ajax-example.contract.xml (original)
+++ forrest/branches/dispatcher_rewrite/plugins/org.apache.forrest.plugin.internal.dispatcher/themer/themes/common/html/ajax-example.contract.xml Mon Mar  9 13:28:26 2009
@@ -40,19 +40,19 @@
    name="ajax-example" inputFormat="xsl">
     <xsl:stylesheet version="1.1" 
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
-      <xsl:param name="ajax-example-head">
+      <xsl:param name="ajax-example-head" />
       <xsl:template match="/">
         <forrest:content>
           <forrest:part xpath="/html/head">
 <script type="text/javascript">
-             function preview(div){
+             <![CDATA[function preview(div){
                $(div).innerHTML="please stand by";
                var url = 'http://localhost:8888/less.contract.project-ajax-example.xml';
                new Ajax.Updater({success: div}, url, {method: 'get', onFailure: reportError});
             }
             function reportError(request){
               alert('Sorry. There was an error.');
-            }
+            }]]>
         </script>
         </forrest:part>
         </forrest:content>