cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tcu...@apache.org
Subject cvs commit: xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/variables PreparedVariableResolver.java
Date Sun, 23 Feb 2003 15:49:26 GMT
tcurdt      2003/02/23 07:49:26

  Modified:    src/java/org/apache/cocoon/components/treeprocessor/variables
                        PreparedVariableResolver.java
  Log:
  re-activated the sitemap variable anchor syntax
  
  Revision  Changes    Path
  1.11      +2 -2      xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolver.java
  
  Index: PreparedVariableResolver.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon2/src/java/org/apache/cocoon/components/treeprocessor/variables/PreparedVariableResolver.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- PreparedVariableResolver.java	31 Jan 2003 22:51:39 -0000	1.10
  +++ PreparedVariableResolver.java	23 Feb 2003 15:49:26 -0000	1.11
  @@ -223,7 +223,7 @@
       }
       
       public final String resolve(InvokeContext context, Map objectModel) throws PatternException
{
  -        List mapStack = null; // = context.getMapStack();
  +        List mapStack = null; // get the stack only when necessary - lazy inside the loop
           int stackSize = 0;
   
           StringBuffer result = new StringBuffer();
  @@ -273,7 +273,7 @@
                       {
                           String name = (String) this.items.get(++i);
                           Object variable = this.items.get(++i);
  -                        Map levelResult = null; //context.getMapByAnchor(name);
  +                        Map levelResult = context.getMapByAnchor(name);
   
                           if (levelResult == null) {
                             throw new PatternException("Error while evaluating '" + this.originalExpr
+
  
  
  

Mime
View raw message