Hallo,
I'm still working on my trigger, that is supposed to validate a Document
after it was changed by overwriting it, thru a XQuery (update ...) or
XUpdate.
I create a copy during the prepare phase of the trigger. During the
finish phase I create an InputStream for the modified document. I create
a Validator Instance and call the validate-method with the InputStream.
This is my code for this job:
...
is = new EmbeddedInputStream(new XmldbURL(XmldbURI.xmldbUriFor( absPath)));
Validator validator = new Validator(broker.getBrokerPool());
valid = validator.validate(is).isValid();
...
My problem is, that this InputStream is empty if the modification was
due to a XQuery (update ...). This causes the database to run into an
infinite loop when the XMLReader tries to parse the data.
Has anyone a hint for me how to fix this?
Best regards,
Stefan
------------------------------------------------------------------------------
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open