summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
Diffstat (limited to 'testdata')
-rw-r--r--testdata/osmlparser/simple_annotation.osml17
-rw-r--r--testdata/osxmlparser/simple_annotation.osxml9
2 files changed, 26 insertions, 0 deletions
diff --git a/testdata/osmlparser/simple_annotation.osml b/testdata/osmlparser/simple_annotation.osml
new file mode 100644
index 0000000..55e1c08
--- /dev/null
+++ b/testdata/osmlparser/simple_annotation.osml
@@ -0,0 +1,17 @@
+\begin{document}
+
+\ontology#testOntology
+ \struct#test[root=true]
+ \field
+ \childRef[ref=a]
+ \struct#a[transparent=true]
+ \primitive[type=string]
+ \annotation#comment
+ \primitive[type=string]
+
+\begin{test}
+This is a <\comment{Not a nice test!}test\> for annotations.
+\end{test}
+
+\end{document}
+
diff --git a/testdata/osxmlparser/simple_annotation.osxml b/testdata/osxmlparser/simple_annotation.osxml
new file mode 100644
index 0000000..7eb1713
--- /dev/null
+++ b/testdata/osxmlparser/simple_annotation.osxml
@@ -0,0 +1,9 @@
+<document>
+ <import rel="ontology" src="./book_ontology.osxml"/>
+ <import rel="ontology" src="./comments_ontology.osxml"/>
+
+ <book>
+ This is a <a:start:comment>This is not a nice test!</a:start:comment>test<a:end:comment/>.
+ </book>
+</document>
+