ph-schematron icon indicating copy to clipboard operation
ph-schematron copied to clipboard

Missing methods to retrieve detailed diagnostics information from SVRL reports?

Open ingofrank opened this issue 1 year ago • 3 comments

The method getContent() of a DiagnosticReference returns information about a Schematron diagnostic validation message, but there seem to be no further methods in order to get explicit information (e.g. the diagnostic message in different languages etc.) from the returned data structure?!

ingofrank avatar Jul 17 '23 13:07 ingofrank

I see your point. Unfortunately that is a default JAXB generated method. As the diagnostic-reference uses mixed="true" the payload of the object cannot be represented as List<Object>.

What I could do, is to add some sanity methods in SVRLHelper, but you need to let me know what you need exactly, as my primary use case scenario works without diagnostic references....

phax avatar Jul 17 '23 17:07 phax

Ok, I see that there is the method getLang()to get the language (of the message) from a DiagnosticReference. So, that is fine.

It would be good enough for my use case, if we could get the text message from the content structure of the according DiagnosticReference returned by the method getContent().

ingofrank avatar Jul 18 '23 08:07 ingofrank

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jan 07 '24 12:01 stale[bot]