Project

Profile

Help

Revision 4d24175e

Added by Michael Kay about 11 years ago

Fix bug 3112543 XSLT 3.0 rejects valid XPath 3.0 constructs

View differences:

latest9.3/hej/net/sf/saxon/style/AttributeValueTemplate.java
65 65
                    addStringComponent(components, avt, last, i0);
66 66
                }
67 67
                Expression exp;
68
                ExpressionParser parser = new ExpressionParser();
68
                ExpressionParser parser = env.getConfiguration().newExpressionParser("XP", false, env.getXPathLanguageLevel());
69 69
                parser.setLanguage(ExpressionParser.XPATH, env.getXPathLanguageLevel());
70 70
                exp = parser.parse(avt, i0 + 1, Token.RCURLY, lineNumber, env);
71 71
                exp = visitor.simplify(exp);
latest9.3/hej/net/sf/saxon/style/StyleElement.java
576 576
            throws XPathException {
577 577
        getStaticContext();
578 578
        try {
579
            ExpressionParser parser = new ExpressionParser();
579
            ExpressionParser parser =
580
                    getConfiguration().newExpressionParser("XP", false, staticContext.getXPathLanguageLevel());
580 581
            parser.setLanguage(ExpressionParser.XPATH, staticContext.getXPathLanguageLevel());
581 582
            return parser.parseSequenceType(sequenceType, staticContext);
582 583
        } catch (XPathException err) {

Also available in: Unified diff