Beispiel #1
0
 public XslLocalVariable Resolve(XslTransformProcessor p, XmlQualifiedName name)
 {
     for (VariableScope variableScope = this; variableScope != null; variableScope = variableScope.Parent)
     {
         if (variableScope.variables != null)
         {
             XslLocalVariable xslLocalVariable = variableScope.variables[name] as XslLocalVariable;
             if (xslLocalVariable != null && xslLocalVariable.IsEvaluated(p))
             {
                 return(xslLocalVariable);
             }
         }
     }
     return(null);
 }
Beispiel #2
0
 public XslLocalVariable Resolve(XslTransformProcessor p, QName name)
 {
     for (VariableScope s = this; s != null; s = s.Parent)
     {
         if (s.variables == null)
         {
             continue;
         }
         XslLocalVariable v = s.variables [name] as XslLocalVariable;
         if (v != null && v.IsEvaluated(p))
         {
             return(v);
         }
     }
     return(null);
 }