phax / ph-schematron

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

Schematron Errors Line and Column Number #65

Closed javajeff closed 5 years ago

javajeff commented 6 years ago

I would like the schematron error message to include the line and column number of where in the document the error occurred.

phax commented 6 years ago

That depends heavily on 'how' you provide your XML to be validated. If it is a pre-parsed org.w3c.dom.Node than you have no chance to get this information because it does not exist. For other input it depends on your local setup. So how are you validating?

javajeff commented 6 years ago

What is an simple way to validate the XML to be able to get the line numbers for the schematron assertions and reports?

On Fri, Mar 23, 2018 at 12:54 AM, Philip Helger notifications@github.com wrote:

That depends heavily on 'how' you provide your XML to be validated. If it is a pre-parsed org.w3c.dom.Node than you have no chance to get this information because it does not exist. For other input it depends on your local setup. So how are you validating?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/phax/ph-schematron/issues/65#issuecomment-375571574, or mute the thread https://github.com/notifications/unsubscribe-auth/AC2l1NhpA5QmYFZGq9LDap0rquEGryg4ks5thKocgaJpZM4SuNXv .

phax commented 6 years ago

I will try to prepare an example. It's not always obvious :)

jstaerk commented 5 years ago

I will try to prepare an example. It's not always obvious :)

I would also be interested

stale[bot] commented 5 years 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.

phax commented 5 years ago

I am closing this as duplicate of #52