{"id":19163139,"url":"https://github.com/flazz/schematron","last_synced_at":"2025-07-04T23:04:36.462Z","repository":{"id":514965,"uuid":"142901","full_name":"flazz/schematron","owner":"flazz","description":"using iso schematron in ruby and shell","archived":false,"fork":false,"pushed_at":"2011-11-03T14:22:11.000Z","size":172,"stargazers_count":19,"open_issues_count":3,"forks_count":11,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T01:05:13.404Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flazz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-04T14:46:07.000Z","updated_at":"2022-08-26T19:00:44.000Z","dependencies_parsed_at":"2022-07-07T16:27:55.194Z","dependency_job_id":null,"html_url":"https://github.com/flazz/schematron","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flazz%2Fschematron","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flazz%2Fschematron/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flazz%2Fschematron/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flazz%2Fschematron/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flazz","download_url":"https://codeload.github.com/flazz/schematron/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252866124,"owners_count":21816397,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T09:14:18.330Z","updated_at":"2025-05-07T11:21:58.689Z","avatar_url":"https://github.com/flazz.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"ISO Schematron\n==============\n\nRuby gem for validating XML against schematron schema\n\nUses [ISO Schematron](http://www.schematron.com) version: 2010-01-25\n\nInstallation\n------------\n\n    % gem install schematron\n\nCommand line example\n-------------------\n\n    % stron my_schema.stron my_xml_document.xml\n\nRuby API example\n----------------\n\n    # overhead\n    require \"libxml\"\n    require \"schematron\"\n    \n    include LibXML\n    \n    # load the schematron xml\n    stron_doc = XML::Document.file \"/path/to/my_schema.stron\"\n    \n    # make a schematron object\n    stron = Schematron::Schema.new stron_doc\n    \n    # load the xml document you wish to validate\n    xml_doc = XML::Document.file \"/path/to/my_xml_document.xml\"\n    \n    # validate it\n    results = stron.validate xml_doc\n    \n    # print out the results\n    stron.validate(instance_doc).each do |error|\n      puts \"#{error[:line]}: #{error[:message]}\"\n    end\n    \n---\n\nCopyright © 2009-2010 [Francesco Lazzarino](mailto:flazzarino@gmail.com).\n\nSponsored by [Florida Center for Library Automation](http://www.fcla.edu).\n\nSee LICENSE.txt for terms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflazz%2Fschematron","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflazz%2Fschematron","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflazz%2Fschematron/lists"}