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&apos;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 am running v7.4


Regards,



France
--
France Baril
Architecte documentaire / Documentation architect
france.baril@architextus.com
(514) 572-0341