4.4 :: Layout

Description


By using <layout> elements you can control your content on your page. Most other elements lie inside a <layout> element but you can change the mode from "table" to "div" and also place multiple <layout>'s on a page.

Quick Example


  1.  <?xml version="1.0" encoding="UTF-8" ?>
  2.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  3.   <layout>
  4.   <row>
  5.   <cell>
..snip..

Attributes


start_stack


Specify which mode you want the page to be built in.

Options: "table" or "div"

Example:

<layout start_stack="div">

Detailed Example


  1.  <?xml version="1.0" encoding="UTF-8" ?>
  2.  <wapl xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://wapl.wapple.net/wapl.xsd">
  3.   <layout>
  4.   <row>
  5.   <cell>
  6.   <chars>
  7.   <value>Hello world!</value>
  8.   </chars>
  9.   </cell>
  10.   </row>
  11.   </layout>
  12.   <layout start_stack="div">
  13.   <row><cell><chars><value>More hello worlds!</value></chars></cell></row>
  14.   </layout>
  15.  </wapl>

Contents