Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 55832 invoked from network); 16 Jun 2010 03:30:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Jun 2010 03:30:10 -0000 Received: (qmail 39024 invoked by uid 500); 16 Jun 2010 03:20:58 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 39003 invoked by uid 500); 16 Jun 2010 03:20:56 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 38996 invoked by uid 99); 16 Jun 2010 03:20:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 03:20:56 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Jun 2010 03:20:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 6FD4123889E7; Wed, 16 Jun 2010 03:20:05 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r955120 - in /commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie: src/javascript/scxml/cgf/backends/js/StatePatternStatechartGenerator.js src/xslt/backends/js/StatePatternStatechartGenerator_combined.xsl test/SCXMLCompiler.js Date: Wed, 16 Jun 2010 03:20:05 -0000 To: commits@commons.apache.org From: jbeard@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100616032005.6FD4123889E7@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: jbeard Date: Wed Jun 16 03:20:05 2010 New Revision: 955120 URL: http://svn.apache.org/viewvc?rev=955120&view=rev Log: Browser front-end works in IE8. Added: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/xslt/backends/js/StatePatternStatechartGenerator_combined.xsl (with props) Modified: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/backends/js/StatePatternStatechartGenerator.js commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/test/SCXMLCompiler.js Modified: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/backends/js/StatePatternStatechartGenerator.js URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/backends/js/StatePatternStatechartGenerator.js?rev=955120&r1=955119&r2=955120&view=diff ============================================================================== --- commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/backends/js/StatePatternStatechartGenerator.js (original) +++ commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/javascript/scxml/cgf/backends/js/StatePatternStatechartGenerator.js Wed Jun 16 03:20:05 2010 @@ -5,7 +5,10 @@ require.def( [ "src/javascript/scxml/cgf/backends/js/AbstractStatechartGenerator", "xml!src/xslt/ir-compiler/appendTransitionInformation.xsl", - "xml!src/xslt/backends/js/StatePatternStatechartGenerator.xsl" ], + //stylesheet must be preprocessed with preprocess_import.xsl for IE and maybe chrome + "xml!src/xslt/backends/js/StatePatternStatechartGenerator_combined.xsl" + //"xml!src/xslt/backends/js/StatePatternStatechartGenerator.xsl" + ], function( AbstractStatechartGenerator, Added: commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/xslt/backends/js/StatePatternStatechartGenerator_combined.xsl URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/xslt/backends/js/StatePatternStatechartGenerator_combined.xsl?rev=955120&view=auto ============================================================================== --- commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/xslt/backends/js/StatePatternStatechartGenerator_combined.xsl (added) +++ commons/sandbox/gsoc/2010/scxml-js/branches/browser-tests.1.ie/src/xslt/backends/js/StatePatternStatechartGenerator_combined.xsl Wed Jun 16 03:20:05 2010 @@ -0,0 +1,568 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + var topState; + while(topState = statesEntered.pop()){ + topState.enterAction(); + } + + + + + var topState = statesEntered.pop(); + + topState.enterAction(); + + newConfiguration.push(topState.initial ? topState.initial : topState ); + + + + + do{ + statesExited.push(state); + }while((state = state.parent) && + state != lca && + statesExited.indexOf(state) == -1) + + + + + + + + + +