You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We need to add the option to validate the XML file. Let's add a Validate button here:
This button does essentially the same thing as the Update button, except that the stripForValidationis always set to Trueregardless of the setting of the Strip namespacescheckbox. @gradisarjoze, I think we simply need to use https://app.elexifier.elex.is/api/transform/405/apply/5000529?strip_ns=true&strip_header=false&strip_dict_scrap=false
The transformation script will then run validation against the TEI-Lex0 schema and will output the results like this
We need to display these messages as error or success messages similar to how we do this now for errors. I think @LukeItUp needs to prepare the backend function to return the relevant message.
I thin
The text was updated successfully, but these errors were encountered:
GET https://app.elexifier.elex.is/api/transform/405/apply/5000529?strip_ns=true&strip_header=false&strip_dict_scrap=false
This call now returns field "validation" with an array of validation errors objects. The field "long_message" contains formatted error logs.
The array will be empty if strip_ns=true is not included in the call.
@LukeItUp, I think we need a new method here, because we are using returnFirstEntryOnly which does not return the TEI header which automatically fails validation.
We need to add the option to validate the XML file. Let's add a Validate button here:
This button does essentially the same thing as the Update button, except that the
stripForValidation
is always set toTrue
regardless of the setting of theStrip namespaces
checkbox. @gradisarjoze, I think we simply need to usehttps://app.elexifier.elex.is/api/transform/405/apply/5000529?strip_ns=true&strip_header=false&strip_dict_scrap=false
The transformation script will then run validation against the TEI-Lex0 schema and will output the results like this
We need to display these messages as error or success messages similar to how we do this now for errors. I think @LukeItUp needs to prepare the backend function to return the relevant message.
I thin
The text was updated successfully, but these errors were encountered: