Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a dtd? #3

Open
de-code opened this issue Mar 16, 2018 · 3 comments
Open

Is there a dtd? #3

de-code opened this issue Mar 16, 2018 · 3 comments

Comments

@de-code
Copy link

de-code commented Mar 16, 2018

The examples usually refer to http://darformat.org/DarArticle-0.1.0.dtd or other similar URLs. But darformat.org doesn't seem to resolve to any real domain. Are you planning to make it available under that domain? Where would I find the file in the meantime?

(one reason I am asking so I know what elements are mandatory and which ones aren't)

@michael
Copy link
Member

michael commented Mar 16, 2018

Hey!

We don't have a generated dtd yet (will come once the spec has stabilised). However, we have our schemas specified in RelaxNG.

https://github.com/substance/substance/blob/develop/dar/Manifest.rng
https://github.com/substance/texture/blob/master/src/article/DarArticle.rng
https://github.com/stencila/stencila/blob/develop/src/sheet/SheetSchema.rng

@de-code
Copy link
Author

de-code commented Mar 16, 2018

Okay, thank you.

Is there a good place to ask questions? For example I can find 'orgdiv1' only in examples but not in any schema (I might be wrong). From another source I might have 'department' and 'laboratory' as separate elements. Should I add them as different types or combine them to 'orgdiv1'.

@michael
Copy link
Member

michael commented Mar 16, 2018

Currently our schema validator can not enforce attribute values. Hope we find time to add that soon.

However you can find a formal, more readable spec here:

https://github.com/substance/dar/blob/master/DarArticle.md#aff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants