phax / ph-schematron

Java Schematron library that supports XSLT and native application
Apache License 2.0
115 stars 36 forks source link

Missing methods to retrieve detailed diagnostics information from SVRL reports? #158

Open ingofrank opened 1 year ago

ingofrank commented 1 year ago

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?!

phax commented 1 year ago

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....

ingofrank commented 1 year ago

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().

stale[bot] commented 9 months ago

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.