Project

Profile

Help

Revision ed7a6f42

Added by O'Neil Delpratt over 3 years ago

Bug fix relating to lax option

View differences:

latest9.8/hej/net/sf/saxon/option/cpp/SchemaValidatorForCpp.java
589 589
                        System.err.println("parameter length:" + params[i].length());
590 590
                    }
591 591
                    if (params[i].equals("lax")) {
592
                        validator.setLax(((Boolean) values[i]).booleanValue());
592

  
593
                        boolean valueb = false;
594
                        if(values[i] instanceof Boolean) {
595
                            valueb = ((Boolean) values[i]).booleanValue();
596
                        } if(values[i] instanceof String) {
597
                            valueb =  Boolean.getBoolean((String) values[i]);
598
                        }
599
                        validator.setLax(valueb);
593 600
                    } else if (params[i].equals("element-name")) {
594 601
                        String paramName = (String) values[i];
595 602
                        QName qname = QName.fromClarkName(paramName);

Also available in: Unified diff