diff options
author | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-17 23:31:45 +0100 |
---|---|---|
committer | Andreas Stöckel <astoecke@techfak.uni-bielefeld.de> | 2015-02-17 23:31:45 +0100 |
commit | f1d70c71e0444fc49a85459db85c9a6a139f0bd0 (patch) | |
tree | 15e12f14b76cb5b28360d0535f88cf7d691c8bc0 /data/domain/comments.osxml | |
parent | bbc8b5a18f8b2f5ec0ae1de6e60c23464bd799b5 (diff) |
Copied some domains and typesystems from the testdata folder to the data folder
Diffstat (limited to 'data/domain/comments.osxml')
-rw-r--r-- | data/domain/comments.osxml | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/data/domain/comments.osxml b/data/domain/comments.osxml new file mode 100644 index 0000000..cb19bd4 --- /dev/null +++ b/data/domain/comments.osxml @@ -0,0 +1,40 @@ +<?xml version="1.0" standalone="yes"?> +<domain name="comments"> + <import rel="domain" src="book"/> + + <!-- an annotation comment --> + <annotation name="comment"> + <field name="replies" isSubtree="true"> + <childRef ref="reply"/> + </field> + <field name="content"> + <childRef ref="book.paragraph"/> + </field> + </annotation> + + <!-- an point-like structure comment. --> + <struct name="comment"> + <!-- Is there a chance to prevent users from having to redefine these + two fields in comment and reply? Could we use a fieldRef here? + Or would that be circular? --> + <field name="replies" isSubtree="true"> + <childRef ref="reply"/> + </field> + <field name="content"> + <childRef ref="book.paragraph"/> + </field> + <parentRef ref="book.paragraph"> + <fieldRef ref="$default"/> + </parentRef> + </struct> + <!-- note that replies are organized in a tree fashion: One can also reply + to a reply --> + <struct name="reply"> + <field name="replies" isSubtree="true"> + <childRef ref="reply"/> + </field> + <field name="content"> + <childRef ref="book.paragraph"/> + </field> + </struct> +</domain> |