Re: [xml] Constraint validation for huge documents

2021-01-06 Thread Stefan de Konink
Hi Liam, On Wednesday, January 6, 2021 2:35:53 AM CET, Liam R E Quin wrote: Could you do this instead using schematron? Would you have an example how to do a key identity constraint with schematron? I am happy to benchmark it. -- Stefan ___ xml ma

Re: [xml] Constraint validation for huge documents

2021-01-05 Thread Liam R E Quin
On Tue, 2021-01-05 at 19:12 +0100, Stefan de Konink wrote: > > > Yesterday I wrote a custom validator in lxml for key/keyref and > unique > constraints. Could you do this instead using schematron? It may be somewhat slower but easier to maintain. Liam -- Liam Quin - web slave for https://

Re: [xml] Constraint validation for huge documents

2021-01-05 Thread Stefan de Konink
Hi Nick, Thanks for your reply. It does have a noticeable impact, while having compiled libxml2-git yesterday, I oversaw it. With the single constraint file; libxml2-2.9.10 User time (seconds): 90.81 Elapsed (wall clock) time (h:mm:ss or m:ss): 1:31.60 libxml2-git User time (seconds): 49.57

Re: [xml] Constraint validation for huge documents

2021-01-05 Thread Nick Wellnhofer via xml
The XML Schemas code hasn't been actively maintained for more than 10 years, so it's unlikely to receive a helpful answer regarding the code. There was a recent patch which might help: https://gitlab.gnome.org/GNOME/libxml2/-/commit/faea2fa9b890cc329f33ce518dfa1648e64e14d6 Other than that, yo