Lecture overview -- Keyboard shortcut: 'u'  Previous page: Mixing XML and program fragments  -- Keyboard shortcut: 'p'  Next page: Program hosting -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Page 7 : 30
XML Processing in LAML
Markup hosting

Program fragments appear as constituents in a complete XML document

<html>
  <head> <title> JSP Example </title> </head>
  <body
    <table border=2>
    <%
        for ( int i = 0; i < n; i++ ) {
            %>
            <tr> <td>Number</td>
                 <td><%= i+1 %></td>
            </tr>
            <%
        }
    %>
    </table>
  </body>
</html>

An short example of a JSP document. The table part of the example is taken from www.jsptut.com