o:XML Program Examples

Here are some examples that illustrate various aspects of the o:XML programming language. They all consist of an XML program document which can be viewed as XML or HTML, and an XSL document used for transforming the result into viewable form.

Clicking execute will run the o:XML program in a Java Servlet instance of the ObjectBox compiler and interpreter which will:

  • parse and compile the XML file into executable objectform (first time only)
  • create an execution environment that binds the Java (tm) Servlet request to an o:XML variable
  • execute the program using a DOM result target
  • transform the DOM result with an XSLT stylesheet to the Java (tm) Servlet response outputstream

String Replacement Function source stylesheet download execute Function overloading using dynamic types source stylesheet download execute Http Snoop, Java Servlets Language Extension source stylesheet download execute Simple Type Inheritance source stylesheet download execute Eight Queens Problem source stylesheet download execute Fibonacci series, recursive source stylesheet download execute Fibonacci series, iterative source stylesheet download execute

Running ObjectBox v1.0.0.

More to come...