Project

Profile

Help

Revision 5f521dcc

Added by Michael Kay about 11 years ago

3160155 Higher order function closures in XSLT 3.0 Also affects EE code

View differences:

latest9.3/hej/net/sf/saxon/style/StyleElement.java
1910 1910
     *         or null if no declaration of the variable can be found
1911 1911
     */
1912 1912

  
1913
    public XSLVariableDeclaration bindVariable(StructuredQName qName) {
1913
 	public XSLVariableDeclaration bindVariable(StructuredQName qName) {
1914

  
1915
        XSLVariableDeclaration decl = bindLocalVariable(qName);
1916
        if (decl != null) {
1917
            return decl;
1918
        }
1919

  
1920
		// Now check for a global variable
1921
		// we rely on the search following the order of decreasing import precedence.
1922
		return getPrincipalStylesheetModule().getGlobalVariable(qName);
1923
	}
1924

  
1925
    public XSLVariableDeclaration bindLocalVariable(StructuredQName qName) {
1914 1926
        NodeInfo curr = this;
1915 1927
        NodeInfo prev = this;
1916 1928

  
......
1943 1955
                }
1944 1956
            }
1945 1957
        }
1946

  
1947
        // Now check for a global variable
1948
        // we rely on the search following the order of decreasing import precedence.
1949

  
1950
        return getPrincipalStylesheetModule().getGlobalVariable(qName);
1958
        return null;
1951 1959
    }
1952 1960

  
1953 1961
    /**

Also available in: Unified diff