summaryrefslogtreecommitdiff
path: root/ontology
diff options
context:
space:
mode:
authorAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-22 01:12:57 +0100
committerAndreas Stöckel <astoecke@techfak.uni-bielefeld.de>2015-03-22 01:12:57 +0100
commitf6fc9fa292e8da56fe7078f9ac5bdfefa55abe94 (patch)
treef4c815a72e7a02ed1a248ecc70942c66a006f4ed /ontology
parent37218d8c5afad07198c14725f4a51482f5dfeba8 (diff)
Add source code language attribute
Diffstat (limited to 'ontology')
-rw-r--r--ontology/webpage.osml8
1 files changed, 8 insertions, 0 deletions
diff --git a/ontology/webpage.osml b/ontology/webpage.osml
index e34eeb7..78044a8 100644
--- a/ontology/webpage.osml
+++ b/ontology/webpage.osml
@@ -121,11 +121,19 @@
\attribute#src[type=string]
\primitive#alt[type=string]
+% TODO: This is quiet ugly: We have two structures for basically the same
+% semantics (except one is a block while the other is a primitive) -- is there
+% some way to define this in a better way?
+
\struct#code[isa=block]
+ \attributes
+ \attribute#lang[type=string,default=""]
\field
\childRef[ref=primitive]
\struct#inlineCode[isa=primitive]
+ \attributes
+ \attribute#lang[type=string,default=""]
\field
\childRef[ref=primitive]