Permalink
Browse files

Merge branch 'develop' of https://github.com/eXist-db/exist into develop

  • Loading branch information...
wolfgangmm committed Mar 2, 2014
2 parents 89d7648 + a36fbcf commit 5b8a5e62db3b72222b84b6220d5389b70b84e4a1
@@ -130,15 +130,15 @@ public Sequence eval(Sequence[] args, Sequence contextSequence) throws XPathExce
} catch (IOException ex) {
LOG.error(ex.getMessage(), ex);
- throw new XPathException(ex.getMessage(), ex);
+ throw new XPathException(this, ex.getMessage(), ex);
} catch (SAXException ex) {
LOG.error(ex.getMessage(), ex);
- throw new XPathException(ex.getMessage(), ex);
+ throw new XPathException(this, ex.getMessage(), ex);
} catch (ContentExtractionException ex) {
LOG.error(ex.getMessage(), ex);
- throw new XPathException(ex.getMessage(), ex);
+ throw new XPathException(this, ex.getMessage(), ex);
}
}
}
@@ -186,15 +186,15 @@ private Sequence streamContent(ContentExtraction ce, BinaryValue binary, Sequenc
} catch (IOException ex) {
LOG.error(ex.getMessage(), ex);
- throw new XPathException(ex.getMessage(), ex);
+ throw new XPathException(this, ex.getMessage(), ex);
} catch (SAXException ex) {
LOG.error(ex.getMessage(), ex);
- throw new XPathException(ex.getMessage(), ex);
+ throw new XPathException(this, ex.getMessage(), ex);
} catch (ContentExtractionException ex) {
LOG.error(ex.getMessage(), ex);
- throw new XPathException(ex.getMessage(), ex);
+ throw new XPathException(this, ex.getMessage(), ex);
}
return receiver.getResult();
@@ -270,6 +270,7 @@ private DocumentImpl parseAsXml(final InputStream is) {
builder.startDocument();
final DocumentBuilderReceiver receiver = new DocumentBuilderReceiver(builder, true);
reader.setContentHandler(receiver);
+ reader.setProperty("http://xml.org/sax/properties/lexical-handler", receiver);
reader.parse(src);
builder.endDocument();
final Document doc = receiver.getDocument();
Oops, something went wrong.

0 comments on commit 5b8a5e6

Please sign in to comment.