From f6fc9fa292e8da56fe7078f9ac5bdfefa55abe94 Mon Sep 17 00:00:00 2001 From: Andreas Stöckel Date: Sun, 22 Mar 2015 01:12:57 +0100 Subject: Add source code language attribute --- ontology/webpage.osml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ontology/webpage.osml') 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] -- cgit v1.2.3