kwartz 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (169) hide show
  1. data/COPYING +340 -0
  2. data/ChangeLog +103 -0
  3. data/README.txt +37 -0
  4. data/bin/kwartz +12 -0
  5. data/doc-api/classes/Kwartz.html +218 -0
  6. data/doc-api/classes/Kwartz/Assertion.html +140 -0
  7. data/doc-api/classes/Kwartz/AssertionError.html +148 -0
  8. data/doc-api/classes/Kwartz/AttrInfo.html +320 -0
  9. data/doc-api/classes/Kwartz/BaseError.html +206 -0
  10. data/doc-api/classes/Kwartz/BaseTranslator.html +331 -0
  11. data/doc-api/classes/Kwartz/CharacterType.html +212 -0
  12. data/doc-api/classes/Kwartz/CommandOptionError.html +154 -0
  13. data/doc-api/classes/Kwartz/CommandOptions.html +374 -0
  14. data/doc-api/classes/Kwartz/Config.html +150 -0
  15. data/doc-api/classes/Kwartz/ConvertError.html +191 -0
  16. data/doc-api/classes/Kwartz/Converter.html +252 -0
  17. data/doc-api/classes/Kwartz/CssStyleParser.html +483 -0
  18. data/doc-api/classes/Kwartz/DocumentRuleset.html +369 -0
  19. data/doc-api/classes/Kwartz/ElementExpander.html +325 -0
  20. data/doc-api/classes/Kwartz/ElementInfo.html +312 -0
  21. data/doc-api/classes/Kwartz/ElementRuleset.html +582 -0
  22. data/doc-api/classes/Kwartz/EperlHandler.html +338 -0
  23. data/doc-api/classes/Kwartz/EperlTranslator.html +167 -0
  24. data/doc-api/classes/Kwartz/ErubisHandler.html +113 -0
  25. data/doc-api/classes/Kwartz/ErubisTranslator.html +168 -0
  26. data/doc-api/classes/Kwartz/ErubyHandler.html +337 -0
  27. data/doc-api/classes/Kwartz/ErubyTranslator.html +167 -0
  28. data/doc-api/classes/Kwartz/ExpandStatement.html +227 -0
  29. data/doc-api/classes/Kwartz/Expression.html +119 -0
  30. data/doc-api/classes/Kwartz/Handler.html +558 -0
  31. data/doc-api/classes/Kwartz/JstlHandler.html +657 -0
  32. data/doc-api/classes/Kwartz/JstlTranslator.html +226 -0
  33. data/doc-api/classes/Kwartz/KwartzError.html +146 -0
  34. data/doc-api/classes/Kwartz/Main.html +384 -0
  35. data/doc-api/classes/Kwartz/NativeExpression.html +236 -0
  36. data/doc-api/classes/Kwartz/NativeStatement.html +254 -0
  37. data/doc-api/classes/Kwartz/Node.html +156 -0
  38. data/doc-api/classes/Kwartz/ParseError.html +148 -0
  39. data/doc-api/classes/Kwartz/PhpHandler.html +333 -0
  40. data/doc-api/classes/Kwartz/PhpTranslator.html +194 -0
  41. data/doc-api/classes/Kwartz/PresentationLogicParser.html +830 -0
  42. data/doc-api/classes/Kwartz/PrintStatement.html +221 -0
  43. data/doc-api/classes/Kwartz/RailsHandler.html +587 -0
  44. data/doc-api/classes/Kwartz/RailsTranslator.html +167 -0
  45. data/doc-api/classes/Kwartz/RubyStyleParser.html +558 -0
  46. data/doc-api/classes/Kwartz/Ruleset.html +117 -0
  47. data/doc-api/classes/Kwartz/Statement.html +119 -0
  48. data/doc-api/classes/Kwartz/StrutsTranslator.html +190 -0
  49. data/doc-api/classes/Kwartz/TagInfo.html +314 -0
  50. data/doc-api/classes/Kwartz/TextConverter.html +270 -0
  51. data/doc-api/classes/Kwartz/Translator.html +318 -0
  52. data/doc-api/classes/Test.html +107 -0
  53. data/doc-api/classes/Test/Unit.html +101 -0
  54. data/doc-api/created.rid +1 -0
  55. data/doc-api/files/__/README_txt.html +150 -0
  56. data/doc-api/files/kwartz/assert_rb.html +114 -0
  57. data/doc-api/files/kwartz/binding/eperl_rb.html +116 -0
  58. data/doc-api/files/kwartz/binding/erubis_rb.html +116 -0
  59. data/doc-api/files/kwartz/binding/eruby_rb.html +115 -0
  60. data/doc-api/files/kwartz/binding/jstl_rb.html +116 -0
  61. data/doc-api/files/kwartz/binding/php_rb.html +116 -0
  62. data/doc-api/files/kwartz/binding/rails_rb.html +115 -0
  63. data/doc-api/files/kwartz/binding/struts_rb.html +117 -0
  64. data/doc-api/files/kwartz/config_rb.html +107 -0
  65. data/doc-api/files/kwartz/converter_rb.html +119 -0
  66. data/doc-api/files/kwartz/error_rb.html +107 -0
  67. data/doc-api/files/kwartz/main_rb.html +124 -0
  68. data/doc-api/files/kwartz/node_rb.html +114 -0
  69. data/doc-api/files/kwartz/parser_rb.html +117 -0
  70. data/doc-api/files/kwartz/translator_rb.html +115 -0
  71. data/doc-api/files/kwartz/util/assert-text-equal_rb.html +115 -0
  72. data/doc-api/files/kwartz/util/testcase-helper_rb.html +115 -0
  73. data/doc-api/files/kwartz_rb.html +120 -0
  74. data/doc-api/fr_class_index.html +75 -0
  75. data/doc-api/fr_file_index.html +45 -0
  76. data/doc-api/fr_method_index.html +216 -0
  77. data/doc-api/index.html +24 -0
  78. data/doc-api/rdoc-style.css +208 -0
  79. data/doc/docstyle.css +188 -0
  80. data/doc/p-pattern.html +1207 -0
  81. data/doc/reference.html +3396 -0
  82. data/doc/users-guide.html +1670 -0
  83. data/examples/breadcrumbs1/Makefile +15 -0
  84. data/examples/breadcrumbs1/breadcrumbs.eruby.plogic +27 -0
  85. data/examples/breadcrumbs1/breadcrumbs.html +12 -0
  86. data/examples/breadcrumbs1/breadcrumbs.jstl.plogic +28 -0
  87. data/examples/breadcrumbs1/breadcrumbs.php.plogic +26 -0
  88. data/examples/breadcrumbs1/main.php +12 -0
  89. data/examples/breadcrumbs1/main.rb +12 -0
  90. data/examples/breadcrumbs2/Makefile +15 -0
  91. data/examples/breadcrumbs2/breadcrumbs.eruby.plogic +22 -0
  92. data/examples/breadcrumbs2/breadcrumbs.html +14 -0
  93. data/examples/breadcrumbs2/breadcrumbs.jstl.plogic +24 -0
  94. data/examples/breadcrumbs2/breadcrumbs.php.plogic +23 -0
  95. data/examples/breadcrumbs2/main.php +12 -0
  96. data/examples/breadcrumbs2/main.rb +12 -0
  97. data/examples/pagelayout/Makefile +47 -0
  98. data/examples/pagelayout/content.eruby.plogic +44 -0
  99. data/examples/pagelayout/content.jstl.plogic +36 -0
  100. data/examples/pagelayout/content.php.plogic +37 -0
  101. data/examples/pagelayout/content1.html +36 -0
  102. data/examples/pagelayout/content2.html +29 -0
  103. data/examples/pagelayout/design.css +40 -0
  104. data/examples/pagelayout/layout.html +50 -0
  105. data/examples/pagelayout/main.php +55 -0
  106. data/examples/pagelayout/main.rb +77 -0
  107. data/examples/pagelayout/menu.eruby.plogic +14 -0
  108. data/examples/pagelayout/menu.html +13 -0
  109. data/examples/pagelayout/menu.jstl.plogic +14 -0
  110. data/examples/pagelayout/menu.php.plogic +14 -0
  111. data/examples/rails1/Makefile +36 -0
  112. data/examples/rails1/README +19 -0
  113. data/examples/rails1/application_helper.rb +31 -0
  114. data/examples/rails1/edit.html +28 -0
  115. data/examples/rails1/edit.plogic +10 -0
  116. data/examples/rails1/form.html +52 -0
  117. data/examples/rails1/form.plogic +33 -0
  118. data/examples/rails1/layout.plogic +15 -0
  119. data/examples/rails1/link_to.plogic +19 -0
  120. data/examples/rails1/list.html +48 -0
  121. data/examples/rails1/list.plogic +28 -0
  122. data/examples/rails1/new.html +27 -0
  123. data/examples/rails1/new.plogic +10 -0
  124. data/examples/rails1/reader.plogic +29 -0
  125. data/examples/rails1/show.html +40 -0
  126. data/examples/rails1/show.plogic +4 -0
  127. data/examples/rails1/writer.plogic +8 -0
  128. data/examples/table1/Makefile +15 -0
  129. data/examples/table1/main.php +11 -0
  130. data/examples/table1/main.rb +11 -0
  131. data/examples/table1/table1.eruby.plogic +21 -0
  132. data/examples/table1/table1.html +16 -0
  133. data/examples/table1/table1.jstl.plogic +21 -0
  134. data/examples/table1/table1.php.plogic +22 -0
  135. data/kwartz.gemspec +55 -0
  136. data/lib/kwartz.rb +13 -0
  137. data/lib/kwartz/assert.rb +31 -0
  138. data/lib/kwartz/binding/eperl.rb +166 -0
  139. data/lib/kwartz/binding/erubis.rb +61 -0
  140. data/lib/kwartz/binding/eruby.rb +164 -0
  141. data/lib/kwartz/binding/jstl.rb +334 -0
  142. data/lib/kwartz/binding/php.rb +167 -0
  143. data/lib/kwartz/binding/rails.rb +295 -0
  144. data/lib/kwartz/binding/struts.rb +109 -0
  145. data/lib/kwartz/config.rb +28 -0
  146. data/lib/kwartz/converter.rb +920 -0
  147. data/lib/kwartz/error.rb +41 -0
  148. data/lib/kwartz/main.rb +464 -0
  149. data/lib/kwartz/node.rb +454 -0
  150. data/lib/kwartz/parser.rb +903 -0
  151. data/lib/kwartz/translator.rb +153 -0
  152. data/lib/kwartz/util/assert-text-equal.rb +44 -0
  153. data/lib/kwartz/util/testcase-helper.rb +112 -0
  154. data/setup.rb +1331 -0
  155. data/test/test-compile.rb +36 -0
  156. data/test/test-compile.yaml +178 -0
  157. data/test/test-converter.rb +34 -0
  158. data/test/test-converter.yaml +127 -0
  159. data/test/test-directives.rb +32 -0
  160. data/test/test-directives.yaml +1411 -0
  161. data/test/test-main.rb +464 -0
  162. data/test/test-parser.rb +54 -0
  163. data/test/test-parser.yaml +394 -0
  164. data/test/test-rails.rb +28 -0
  165. data/test/test-rails.yaml +301 -0
  166. data/test/test-ruleset.rb +36 -0
  167. data/test/test-ruleset.yaml +804 -0
  168. data/test/test.rb +44 -0
  169. metadata +236 -0
@@ -0,0 +1,28 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css">
6
+ </head>
7
+ <body>
8
+
9
+ <div id="page_content">
10
+
11
+ <h1>Editing member</h1>
12
+
13
+ <form action="update" id="form_for_update">
14
+
15
+ <div id="replace_element_by_form_content">
16
+ <p>Name: <input type="text"></p>
17
+ <p>Email: <input type="text"></p>
18
+ </div>
19
+
20
+ <input type="submit" id="mark:submit">
21
+ </form>
22
+
23
+ <a href="#" id="link_to_show">Show</a> | <a href="#" id="link_to_list">List</a>
24
+
25
+ </div>
26
+
27
+ </body>
28
+ </html>
@@ -0,0 +1,10 @@
1
+ @import 'link_to.plogic';
2
+ @import 'writer.plogic';
3
+
4
+ #form_for_update {
5
+ stag: start_form_tag :action=>'update', :id=>@member.id;
6
+ }
7
+
8
+ #submit {
9
+ elem: submit_tag 'Edit';
10
+ }
@@ -0,0 +1,52 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title id="mark:header_title">Member: enter</title>
5
+ <meta http-equiv="Content-Type" content="text/html">
6
+ <link id="mark:stylesheet" rel="stylesheet" type="text/css" href="scaffold.css" />
7
+ </head>
8
+ <body>
9
+
10
+ <p style="color: green" id="mark:flash"></p>
11
+
12
+ <div id="content_for_layout">
13
+
14
+ <h1>Enter Member</h1>
15
+
16
+ <div id="form_content">
17
+
18
+ <div id="mark:error_messages"></div>
19
+
20
+ <!--[form:member]-->
21
+ <p><label for="member_name">Name</label><br>
22
+ <input type="text" id="member_name"></p>
23
+
24
+ <p><label for="member_email">Email</label><br>
25
+ <input type="text" id="member_email"></p>
26
+
27
+ <p><label for="member_birth">Birth</label><br>
28
+ <select id="member_birth">
29
+ <option value=""> - <option>
30
+ </select>
31
+ </p>
32
+
33
+ <p><label for="member_gender">Gender</label><br>
34
+ <input type="radio" id="member_gender_m"><label for="member_gender_m">Man</label>
35
+ <input type="radio" id="member_gender_w"><label for="member_gender_w">Woman</label>
36
+ </p>
37
+
38
+ <p><label for="member_group_id">Group</label><br>
39
+ <select id="member_group_id">
40
+ <option value=""> - </option>
41
+ <option value="1">group1</option>
42
+ <option value="2">group2</option>
43
+ </select>
44
+ </p>
45
+ <!--[eoform:member]-->
46
+
47
+ </div>
48
+
49
+ </div>
50
+
51
+ </body>
52
+ </html>
@@ -0,0 +1,33 @@
1
+ @import 'layout.plogic';
2
+
3
+
4
+ #error_messages {
5
+ elem: error_messages_for 'member';
6
+ }
7
+
8
+ #member_name {
9
+ elem: text_field 'member', 'name';
10
+ }
11
+
12
+ #member_email {
13
+ elem: text_field 'member', 'email';
14
+ }
15
+
16
+ #member_birth {
17
+ elem: date_select 'member', 'birth';
18
+ }
19
+
20
+ #member_gender_m {
21
+ elem: radio_button 'member', 'gender', 'M';
22
+ }
23
+ #member_gender_w {
24
+ elem: radio_button 'member', 'gender', 'W';
25
+ }
26
+
27
+ #member_group_id {
28
+ elem: select 'member', 'group_id', group_options, :include_blank=>true;
29
+ logic: {
30
+ group_options = Group.find_all().collect {|g| [g.name, g.id]}
31
+ _elem
32
+ }
33
+ }
@@ -0,0 +1,15 @@
1
+ #header_title {
2
+ cont: 'Member: ' + controller.action_name;
3
+ }
4
+
5
+ #stylesheet {
6
+ elem: stylesheet_link_tag 'scaffold';
7
+ }
8
+
9
+ #flash {
10
+ cont: flash[:notice];
11
+ }
12
+
13
+ #content_for_layout {
14
+ elem: @content_for_layout;
15
+ }
@@ -0,0 +1,19 @@
1
+ #link_to_list {
2
+ stag: start_link_to :action=>'list';
3
+ }
4
+
5
+ #link_to_new {
6
+ stag: start_link_to :action=>'new';
7
+ }
8
+
9
+ #link_to_show {
10
+ stag: start_link_to :action=>'show', :id=>@member.id;
11
+ }
12
+
13
+ #link_to_edit {
14
+ stag: start_link_to :action=>'edit', :id=>@member.id;
15
+ }
16
+
17
+ #link_to_destroy {
18
+ stag: start_link_to({:action=>'destroy', :id=>@member.id}, :confirm=>'Are you sure?');
19
+ }
@@ -0,0 +1,48 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css">
6
+ </head>
7
+ <body>
8
+
9
+ <div id="mark:page_content">
10
+
11
+ <h1>Listing members</h1>
12
+
13
+ <table summary="">
14
+
15
+ <tr>
16
+ <th>Name</th>
17
+ <th>Email</th>
18
+ <th>Birth</th>
19
+ <th>Gender</th>
20
+ <th>Group</th>
21
+ </tr>
22
+
23
+ <tr id="mark:members">
24
+ <td id="mark:member_name">foo</td>
25
+ <td id="mark:member_email">foo@mail.com</td>
26
+ <td id="mark:member_birth">2000-01-01</td>
27
+ <td id="mark:member_gender">Woman</td>
28
+ <td id="mark:member_group">admin</td>
29
+ <td>
30
+ <a href="#" id="link_to_show">Show</a>
31
+ <a href="#" id="link_to_edit">Edit</a>
32
+ <a href="#" id="link_to_destroy">Destroy</a>
33
+ </td>
34
+ </tr>
35
+
36
+ </table>
37
+
38
+ <a href="#" id="prev_page">Previous page</a>
39
+ <a href="#" id="next_page">Next page</a>
40
+
41
+ <br />
42
+
43
+ <a href="#" id="link_to_new">New member</a>
44
+
45
+ </div>
46
+
47
+ </body>
48
+ </html>
@@ -0,0 +1,28 @@
1
+ @import 'link_to.plogic';
2
+ @import 'reader.plogic';
3
+
4
+ #members {
5
+ logic: {
6
+ for @member in @members
7
+ _elem
8
+ end
9
+ }
10
+ }
11
+
12
+ #prev_page {
13
+ elem: start_link_to({:page=>@member_pages.current.previous});
14
+ logic: {
15
+ if @member_pages.current.previous
16
+ _elem
17
+ end
18
+ }
19
+ }
20
+
21
+ #next_page {
22
+ elem: start_link_to({:page=>@member_pages.current.next});
23
+ logic: {
24
+ if @member_pages.current.next
25
+ _elem
26
+ end
27
+ }
28
+ }
@@ -0,0 +1,27 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css">
6
+ </head>
7
+ <body>
8
+
9
+ <div id="page_content">
10
+
11
+ <h1>New member</h1>
12
+
13
+ <form action="create" id="form_for_create">
14
+
15
+ <span id="replace_element_by_form_content">
16
+ ...
17
+ </span>
18
+
19
+ <input type="submit" id="submit">
20
+ </form>
21
+
22
+ <a href="#" id="link_to_list">Back</a>
23
+
24
+ </div>
25
+
26
+ </body>
27
+ </html>
@@ -0,0 +1,10 @@
1
+ @import 'link_to.plogic';
2
+ @import 'writer.plogic';
3
+
4
+ #form_for_create {
5
+ stag: start_form_tag :action=>'create';
6
+ }
7
+
8
+ #submit {
9
+ elem: submit_tag 'Create';
10
+ }
@@ -0,0 +1,29 @@
1
+
2
+ #member_name {
3
+ Value: @member.name;
4
+ }
5
+
6
+ #member_email {
7
+ Value: @member.email;
8
+ }
9
+
10
+ #member_birth {
11
+ value: @member.birth;
12
+ }
13
+
14
+ #member_gender {
15
+ value: label;
16
+ logic: {
17
+ case @member.gender
18
+ when 'M' ; label = 'Man'
19
+ when 'W' ; label = 'Woman'
20
+ else ; label = ' - '
21
+ end
22
+ _elem
23
+ }
24
+ }
25
+
26
+ #member_group {
27
+ Value: @member.group.name;
28
+ }
29
+
@@ -0,0 +1,40 @@
1
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2
+ <html>
3
+ <head>
4
+ <title></title>
5
+ <link rel="stylesheet" type="text/css" href="scaffold.css">
6
+ </head>
7
+ <body>
8
+
9
+ <div id="page_content">
10
+ <p>
11
+ <b>Name:</b>
12
+ <span id="mark:member_name">Foo</span>
13
+ </p>
14
+
15
+ <p>
16
+ <b>Email:</b>
17
+ <span id="mark:member_email">foo@mail.com</span>
18
+ </p>
19
+
20
+ <p>
21
+ <b>Birth:</b>
22
+ <span id="mark:member_birth">2000-01-01</span>
23
+ </p>
24
+
25
+ <p>
26
+ <b>Gender:</b>
27
+ <span id="mark:member_gender">Woman</span>
28
+ </p>
29
+
30
+ <p>
31
+ <b>Group:</b>
32
+ <span id="mark:member_group">admin</span>
33
+ </p>
34
+
35
+ <a href="#" id="link_to_edit">Edit</a> |
36
+ <a href="#" id="link_to_list">Back</a>
37
+ </div>
38
+
39
+ </body>
40
+ </html>
@@ -0,0 +1,4 @@
1
+ @import 'link_to.plogic';
2
+ @import 'reader.plogic';
3
+
4
+
@@ -0,0 +1,8 @@
1
+ @import 'form.plogic';
2
+
3
+ #replace_element_by_form_content {
4
+ logic: {
5
+ _content('form_content')
6
+ }
7
+ }
8
+
@@ -0,0 +1,15 @@
1
+ ALL = table1.rhtml table1.php table1.jsp
2
+
3
+ all: ${ALL}
4
+
5
+ clean:
6
+ rm -f ${ALL}
7
+
8
+ table1.rhtml: table1.eruby.plogic table1.html
9
+ kwartz -l eruby -p table1.eruby.plogic table1.html > table1.rhtml
10
+
11
+ table1.php: table1.php.plogic table1.html
12
+ kwartz -l php -p table1.php.plogic table1.html > table1.php
13
+
14
+ table1.jsp: table1.jstl.plogic table1.html
15
+ kwartz -l jstl -p table1.jstl.plogic table1.html > table1.jsp
@@ -0,0 +1,11 @@
1
+ <?php
2
+
3
+ $list = array(
4
+ array('name'=>"Nomo", 'mail'=>"hideo@mail.com" ),
5
+ array('name'=>"Ichiro", 'mail'=>"ichiro@mail.net" ),
6
+ array('name'=>"Matsui", 'mail'=>"hideki@mail.org" ),
7
+ );
8
+
9
+ include('table1.php');
10
+
11
+ ?>
@@ -0,0 +1,11 @@
1
+ list = [
2
+ { :name=>"Nomo", :mail=>"hideo@mail.com" },
3
+ { :name=>"Ichiro", :mail=>"ichiro@mail.net" },
4
+ { :name=>"Matsui", :mail=>"hideki@mail.org" },
5
+ ]
6
+
7
+ require 'erb'
8
+ str = File.read('table1.rhtml')
9
+ trim_mode = 1
10
+ erb = ERB.new(str, $SAFE, trim_mode)
11
+ print erb.result(binding())
@@ -0,0 +1,21 @@
1
+ #row {
2
+ attrs: "bgcolor" color;
3
+ logic: {
4
+ list.each_with_index { |item, i|
5
+ color = i % 2 == 0 ? '#CCCCFF' : '#FFCCCC';
6
+ _elem
7
+ }
8
+ }
9
+ }
10
+
11
+ #name {
12
+ value: item[:name];
13
+ }
14
+
15
+ #mail {
16
+ value: item[:mail];
17
+ }
18
+
19
+ #dummy1 {
20
+ logic: { } /* ignore this element */
21
+ }
@@ -0,0 +1,16 @@
1
+ <html>
2
+ <body>
3
+
4
+ <table>
5
+ <tr bgcolor="#CCCCFF" id="mark:row">
6
+ <td id="mark:name">Foo</td>
7
+ <td id="mark:mail">foo@mail.com</td>
8
+ </tr>
9
+ <tr bgcolor="#FFCCCC" id="mark:dummy1">
10
+ <td>Bar</td>
11
+ <td>bar@mail.org</td>
12
+ </tr>
13
+ </table>
14
+
15
+ </body>
16
+ </html>