Project

Profile

Help

Revision cc2e6c9b

Added by Michael Kay over 12 years ago

Fix bug 2815678 XQuery parser crash with FOR expr in attribute content

View differences:

latest9.1/bj/net/sf/saxon/query/QueryParser.java
1846 1846
                expect(Token.NAME);
1847 1847
                PositionVariable pos = new PositionVariable();
1848 1848
                StructuredQName posQName = makeStructuredQName(t.currentTokenValue, false);
1849
                if (posQName.equals(varQName)) {
1849
                if (!scanOnly && posQName.equals(varQName)) {
1850 1850
                    grumble("The two variables declared in a single 'for' clause must have different names", "XQST0089");
1851 1851
                }
1852 1852
                pos.setVariableQName(posQName);

Also available in: Unified diff