Difference between revisions of "Xebra Write Xeb File"

(New page: =Hello World= The simlest xeb file is a hello world example: <xml> Hello World! </xml> This page will just display "Hello World!" as is. =Iteration over lists and display= If we have ...)
 
(Iteration over lists and display)
Line 19: Line 19:
 
</xml>
 
</xml>
  
 
+
Notice the that the feature attribute is special. Attributes with "#{}" denote variable attributes and use defined variables (here the person from iterate).
  
 
=Wrapped forms=
 
=Wrapped forms=

Revision as of 09:55, 6 July 2009

Hello World

The simlest xeb file is a hello world example:

Hello World!

This page will just display "Hello World!" as is.

Iteration over lists and display

If we have a list and want to iterate over it, we can simply use the iterate tag.

<xeb:iterate list="persons" variable="person" class="PERSON">
<xeb:display feature="#{person.name}" />
</xeb>

Notice the that the feature attribute is special. Attributes with "#{}" denote variable attributes and use defined variables (here the person from iterate).

Wrapped forms