Skip to content
This repository has been archived by the owner on Jun 6, 2019. It is now read-only.

Implement XSD validation #26

Open
Klortho opened this issue Oct 1, 2015 · 0 comments
Open

Implement XSD validation #26

Klortho opened this issue Oct 1, 2015 · 0 comments

Comments

@Klortho
Copy link
Member

Klortho commented Oct 1, 2015

The validator now does RNG validation, and it will be really easy to implement XSD, but there are other, more pressing issues.

Here are some notes.

oXygen has a nice XSD flattener, described here. It's not open source, of course.

To use it on a Mac, for example:

cd /Applications/oxygen
./flattenSchemaMac.sh \
  -in:~/git/jats4r/validator/lib/niso-jats/publishing/1.1d3/oasis-mml3/xsd/JATS-journalpublishing-oasis-article1-mathml3.xsd \
  -outDir:~/temp

It doesn't flatten to one file: there's a limitation with XSD, that you need different files for different namespaces. This flattens from ~50 files → 6.

We'd need to add this list of resultant files to jats/jats.yaml, something like this:

xsd:
  ...
  flat_files:
    - JATS-journalpublishing-oasis-article1-mathml3.xsd
    - mathml3.xsd
    - module-ali.xsd
    - module-oasis.xsd
    - xlink.xsd
    - xml.xsd
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant