Package net.sf.saxon.trans

Examples of net.sf.saxon.trans.XPathException.maybeSetErrorCode()


                validationAction==Validation.LAX) {
            try {
                ann = context.getConfiguration().validateAttribute(nameCode, value, validationAction);
            } catch (ValidationException e) {
                XPathException err = XPathException.makeXPathException(e);
                err.maybeSetErrorCode((validationAction==Validation.STRICT ? "XTTE1510" : "XTTE1515"));
                err.setXPathContext(context);
                err.maybeSetLocation(this);
                err.setIsTypeError(true);
                throw err;
            }
View Full Code Here


                int flagBits = JRegularExpression.setFlags(flags);
                re = new JRegularExpression(pat.getStringValueCS(), xmlVersion, RegularExpression.XPATH_SYNTAX, flagBits);

            } catch (XPathException err) {
                XPathException de = new XPathException(err);
                de.maybeSetErrorCode("FORX0002");
                de.setXPathContext(c);
                throw de;
            }
        }
        return BooleanValue.get(re.containsMatch(sv0.getStringValueCS()));
View Full Code Here

        } catch (TransformerException err) {
            pool.markUnavailable(documentKey);
            XPathException xerr = XPathException.makeXPathException(err);
            xerr.maybeSetLocation(locator);
            String code = (err.getException() instanceof FileNotFoundException) ? "FODC0005" : "FODC0002";
            xerr.maybeSetErrorCode(code);
            try {
                controller.recoverableError(xerr);
            } catch (XPathException err2) {
                throw xerr;
            }
View Full Code Here

                    source = startNode.getDocumentRoot();
                }
            } catch (TransformerException err) {
                XPathException xerr = XPathException.makeXPathException(err);
                xerr.setLocator(locator);
                xerr.maybeSetErrorCode("FODC0005");
                throw xerr;
            }
        }
        ParseOptions options = new ParseOptions();
        options.setStripSpace(Whitespace.XSLT);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.