Project

Profile

Help

Revision bc72ba74

Added by Michael Kay about 1 year ago

Fix bug #4555

View differences:

latest10/hej/net/sf/saxon/Query.java
362 362
                out.setOutputProperty(Serializer.Property.METHOD, "xml");
363 363
                out.setOutputProperty(Serializer.Property.INDENT, "yes");
364 364
                out.setOutputProperty(Serializer.Property.OMIT_XML_DECLARATION, "yes");
365
                if (!"HE".equals(processor.getSaxonEdition())) {
365
                if (processor.getUnderlyingConfiguration().isLicensedFeature(Configuration.LicenseFeature.PROFESSIONAL_EDITION)) {
366 366
                    out.setOutputProperty(Serializer.Property.SAXON_INDENT_SPACES, "2");
367 367
                }
368 368
                exp.explain(out);
latest10/hej/net/sf/saxon/expr/flwor/FLWORExpression.java
517 517
                        boolean simpleSeq = lc.getSequence() instanceof VariableReference ||
518 518
                                lc.getSequence() instanceof Literal;
519 519
                        if (oneRef || simpleSeq) {
520
                            ExpressionTool.replaceVariableReferences(this, lc.getRangeVariable(), lc.getSequence(), !oneRef);
520
                            ExpressionTool.replaceVariableReferences(this, lc.getRangeVariable(), lc.getSequence(), true);
521 521
                            clauses.remove(c);
522 522
                            if (clauses.isEmpty()) {
523 523
                                return getReturnClause();

Also available in: Unified diff