Hi,
This is probably more a suggestion than a question. I am building a restxq application, and when the DTD is modified, I want to run validation all existing content.
let $db := app:open-db($lang) let $topic-validation := <ul>{for $x in $db/*[name()='topic' or name()= 'media'] return try {validate:dtd($x, $app:dtd-topic) } catch BXVA0001 {
<li>File $x/base-uri() doesn't validate.</li> } } </ul>
return $topic-validation
When everything works fine, when the content validates against the dtd, I get an empty <ul/> as expected.
However, if there is an error, the whole process stops, returns an error on the html page that indicates what the error is (but with the wrong filename(??)). Note that the filename changes everytime I run the process).
- I would like to be able to catch errors, accumulate error messages and return them la instead of having the process stop at the first error. - Filename is probably a bug(??).
I am running v7.4
Regards,
France