dar icon indicating copy to clipboard operation
dar copied to clipboard

Is there a dtd?

Open de-code opened this issue 6 years ago • 3 comments

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)

de-code avatar Mar 16 '18 11:03 de-code

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

michael avatar Mar 16 '18 14:03 michael

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'.

de-code avatar Mar 16 '18 15:03 de-code

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

michael avatar Mar 16 '18 15:03 michael