Wiki

Clone wiki

Okapi / EventsExamples

skl shows the skeleton content somewhat abstracted: {} being the place-holder for some kind of references: ref(self-txt) means a place-holder for the text of this resource. ref(prop:xyz) means a place-holder for the value of the property xyz (in this resource), and ref(abc) means a place-holder for the resource abc.

txt shows the text content: [] being inline codes.

Standalone empty element with text

<meta http-equiv='keywords' content='value'/>
TU(tu1): txt="value"
         skl="content='{ref(self-txt)}'"
         type="keyword"

DP(dp1): skl="<meta http-equiv='keywords' {ref(tu1)}/>"
         type="meta"

Standalone empty element with property

<meta http-equiv='Content-Language' content='en'/>
DP(dp1): rw-prop(language)="en"
         skl="<meta http-equiv='Content-Language' content='{ref(prop:language)}'/>"
         type="meta"

Standalone empty element with text and properties

<myElem attr1='text1' attr2='value2' attr3='value3'/>
TU(tu1): txt="text1"
         skl="text='ref(self-txt)'"
         type="text"

DP(dp1): ro-prop(attr2)="value2"
         rw-prop(attr3)="value3"
         skl="<myElem {ref(tu1)} attr2='value2' attr3='{ref(prop:attr3)}'/>"
         type="myElem"

Empty element with text and properties within text

<p><b>Before</b> <img src='image.png' alt='text1'/> after.</p>
TU(tu1): txt="text1"
         skl="alt='{ref(self-txt)}'"
         type="alt"

DP(dp1): rw-prop(src)="image.png"
         skl="<img src='{ref(prop:src)}' {ref(tu1)}/>"
         type="img"

TU(tu2): txt="[<b>]Before[</b>] [{ref(dp1)}] after."
         skl="<p>{ref(self-txt)}</p>"
         type="p"

Element with content and text and attribute

<p title='my title' dir='rtl'>Text of paragraph.</p>
TU(tu1): txt="my title"
         skl="title='{ref(self-txt)}'"
         type="title"

TU(tu2): txt="Text of paragraph."
         rw-prop(dir)="rtl"
         skl="<p {ref(tu1)} dir='{ref(prop:dir)}'>{ref(self-txt)}</p>"
         type="p"

Updated