WOx are the new XML based SOPE templates. A lot of advantages, quite some
disadvantages ;-). Use what fits best!
write some more ...
Namespaces
xmlns="http://www.w3.org/1999/xhtml"
xmlns:OGo="http://www.opengroupware.org/ns/wox/ogo"
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:const="http://www.skyrix.com/od/constant"
TODO: rsrc, javascript
WOxControlElemBuilder
var:if => WOConditional
var:foreach => WORepetition
var:with => WOSetCursor
var:if
condition (eg "condition='hasSession'")
negate (eg "const:negate='YES'")
WOxHTMLElemBuilder
Supported tags:
- all other tags are represented using either WOGenericElement or
WOGenericContainer, so this builder is "final destination" for
all HTML related tags.
<input> - the "type" attribute of the input must be static and further
specifies the generated element
type="submit" maps to WOSubmitButton
type="reset" maps to WOResetButton
type="image" maps to WOImageButton
type="radio" maps to WORadioButton
type="checkbox" maps to WOCheckBox
type="file" maps to WOFileUpload
type="hidden" maps to WOHiddenField
type="password" maps to WOPasswordField
all other map to WOTextField
<a>..</a> maps to WOHyperlink
<img .../> maps to WOImage
<form .../> maps to WOForm
<textarea .../> maps to WOText
<embed .../> maps to WOEmbeddedObject
<frame .../> maps to WOFrame
<iframe .../> maps to WOIFrame
<body .../> maps to WOBody
<entity .../> maps to WOEntity
WOxMiscElemBuilder
<var:string .../> maps to WOString
<var:component-content/> maps to WOComponentContent
<var:entity .../> maps to WOEntity
<var:nbsp .../> maps to WOEntity
<var:popup ../> maps to WOPopUpButton
<var:singleselection ../> maps to WOBrowser
<var:multiselection .../> maps to WOBrowser
<var:radio-button-matrix .../> maps to WORadioButtonMatrix
<var:checkbox-list .../> maps to WOCheckBoxList
WOxXULElemBuilder
Supported tags:
- all other tags are represented using either WOGenericElement or
WOGenericContainer, so this builder is "final destination" for
all XUL related tags.
<iframe .../> maps to WOIFrame
<entity .../> maps to WOEntity
OGoElemBuilder
font
maps to SkyConfigFont
no parameters?
label
<label key="abc"/>
key > value // always keypath: labels.$key
container
Can be used as a top-level container, renders no tag but
only its children.
span
Renders a span tag and its contents.