Skip to content
marly edited this page Sep 13, 2010 · 4 revisions

Validation Logic

Given a PREMIS or PiM document via an input method, return a list of errors or a confirmation message if the document conforms. The main validation logic will be declared in a Schematron schema.

  1. Basic XML/Schema validation (PiM and PREMIS)
    1. check for well-formed document, if errors then return specifics
    2. validate against XML Schema, if errors then return specifics
  2. Best Practice / METS Profile validation (PiM only)
    1. validate against Schematron schemas
    2. return minimally a list of errors in output methods outlined below or confirmation of conformance
    3. Optional/Experimental: suggestions for each error; BP/METS Profile citations

Input Methods

  1. given a HTTP URI of a document, validate it.
  2. upload document via a html form
  3. input a document directly via a html form
  4. Web Service based
    1. via POST
    2. via GET with the URI of a document passed as a query parameter.
    3. investigate what w3 validator does.

Output Formats

  1. HTML
  2. XML
  3. JSON

(all but html will be directly useful to the web service, indirectly AJAX interfaces can use the rest)

Clone this wiki locally