Revision: 1995
          http://svn.sourceforge.net/vexi/?rev=1995&view=rev
Author:   mkpg2
Date:     2007-07-18 07:03:24 -0700 (Wed, 18 Jul 2007)

Log Message:
-----------
Change. Apply attributes to template before executing its function.

Modified Paths:
--------------
    core/trunk/org.vexi.core/src/org/vexi/core/Template.java

Modified: core/trunk/org.vexi.core/src/org/vexi/core/Template.java
===================================================================
--- core/trunk/org.vexi.core/src/org/vexi/core/Template.java    2007-07-18 
12:29:59 UTC (rev 1994)
+++ core/trunk/org.vexi.core/src/org/vexi/core/Template.java    2007-07-18 
14:03:24 UTC (rev 1995)
@@ -186,14 +186,6 @@
                        b.putAndTriggerTraps(b.get(SC_numchildren), kid);
                }
 
-               // UGLY - avoiding adding an init param
-               if (script == null){
-                       pisParserParam = 
TemplateBuilder.instance.createPIChecker(uriPrefixes, this);
-                script = TemplateBuilder.parseScript(content, content_start, 
fileName(), pisParserParam); content = null;
-                if(script== null)script = JSU.F;
-               }
-               if (script != JSU.F) JSU.cloneWithNewGlobalScope(script, 
pis).call(null, EMPTY_JS_ARRAY);
-
                for(int i=0; keys != null && i < keys.length; i++) {
                        if (keys[i] == null) continue;
                        JS key = keys[i];
@@ -215,6 +207,16 @@
                        }
                        b.putAndTriggerTraps(key, val);
                }
+               
+
+               // UGLY - avoiding adding an init param
+               if (script == null){
+                       pisParserParam = 
TemplateBuilder.instance.createPIChecker(uriPrefixes, this);
+                script = TemplateBuilder.parseScript(content, content_start, 
fileName(), pisParserParam); content = null;
+                if(script== null)script = JSU.F;
+               }
+               if (script != JSU.F) JSU.cloneWithNewGlobalScope(script, 
pis).call(null, EMPTY_JS_ARRAY);
+
        }finally{
                Thread.getCurrentInterpreter().exitNonJSCall();
         }


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to