Class Rmobio::BaseTransformer
In: rxml/base_transformer.rb
Parent: Builder::XmlMarkup

The above code generates the following xhtml in a firefox:

<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head><title>mobio</title></head><body> <img id="img1" src="" /><br/> My test app </body></html>

Methods

Included Modules

Singleton

Public Class methods

Create a base rxml transformer to transform rxml document to xhtml markup

out:Object receiving the markup in xhtml
view_buffer:output to hold the view part of the document
model_buffer:output to hold the model data of the document

Final document is view_buffer + model_buffer for some subclass transformer (xforms, etc.)

Public Instance methods

Tag for user input field. Type can be "text" or "password". For type "submit", use submit tag.

Produce a text string. The style will be the tag name, ex, "i" will be the <i> xhtml tag. style: html style attributes, like class, rows, cols, etc. xstyle: xforms style attributes in a string.

  Example attribtues like style, height, width, maxlength, etc.
  width and height can be % of the screen size or in font width (em) or font
  height (ex)
  ex: "width="20em" height="3ex" style="txt1"
  ex: "width="30%" height="5%"

To be implemented.

[Validate]