Project

Profile

Help

Revision 4c7cf2d6

Added by Michael Kay over 12 years ago

Fix bug 2688343 (tunnel="yes" on stylesheet param)

View differences:

latest9.1/bj/net/sf/saxon/style/XSLGeneralVariable.java
221 221
        if (tunnelAtt!=null) {
222 222
            if (tunnelAtt.equals("yes")) {
223 223
                tunnel = true;
224
                if (this instanceof XSLParam && getParent() instanceof XSLFunction) {
225
                    compileError("For attribute 'tunnel' within xsl:function, the only permitted value is 'no'", "XTSE0020");
224
                if (this instanceof XSLParam && !(getParent() instanceof XSLTemplate)) {
225
                    compileError("For attribute 'tunnel' within an " + getParent().getDisplayName() +
226
                            " parameter, the only permitted value is 'no'", "XTSE0020");
226 227
                }
227 228
            } else if (tunnelAtt.equals("no")) {
228 229
                tunnel = false;

Also available in: Unified diff