scribenet / scml_dtds

Public location for the ScML DTDs
0 stars 1 forks source link

The DTD

This is the home of the ScML and sam DTDs.

Updating the DTD

The DTDs should be generated using the elements.yml and scml_generator in the scribenet/scml_builder repo. Elements and validation rules should be altered within the elements.yml file. In the templates directory in that repo, there are templates for the static portions of the DTD. Make additions to those templates and process a new copy of the DTD. We strongly discourage making manual updates to the DTD copies in this repo because that creates information not easily portable to the other iterations of the tag list.

When changing the DTD templates:

Testing the DTD

The file test_dtd.rb exists for testing examples against the DTD to verify that validation behaves as expected. It expects that xmlstarlet is installed and can be invoked by that name.

Running the Tests

Adding Tests

Follow the format seen in the existing methods: