| 1 | <!DOCTYPE PUBLIC html40 "-//W3C/html40.dtd"> |
| 2 | <HTML> |
| 3 | <head> |
| 4 | <title>Html2Wml Test Document -- Typical page</title> |
| 5 | <link rel="stylesheet" href="styles.css"> |
| 6 | <style type="text/css"> |
| 7 | TABLE.menu { |
| 8 | border-style: none; |
| 9 | padding: 0em; |
| 10 | margin: 0em; |
| 11 | } |
| 12 | |
| 13 | TABLE.menu TD.title { |
| 14 | background-image: url(images/drawing_board/menu_background.gif); |
| 15 | background-position: top left; |
| 16 | background-attachment: fixed; |
| 17 | background-repeat: no-repeat; |
| 18 | text-align: center; |
| 19 | font-weight: bold; |
| 20 | } |
| 21 | |
| 22 | TABLE.menu TD { |
| 23 | background-image: url(images/drawing_board/grid.jpg); |
| 24 | } |
| 25 | |
| 26 | </style> |
| 27 | </head> |
| 28 | |
| 29 | <body> |
| 30 | |
| 31 | <h1>Html2Wml Test Document -- Typical page</h1> |
| 32 | |
| 33 | <p>This page is supposed to contain most elements that most pages |
| 34 | on the Internet usually contain: some CSS, a bit of JavaScript, a |
| 35 | table. And some of the end tags are missing in order to test the |
| 36 | syntax repair engine of Html2Wml. </p> |
| 37 | |
| 38 | This text is not enclosed in a P nor in a DIV tag. It is a child |
| 39 | of the BODY element. This is valid in HTML, but won't in WML. |
| 40 | |
| 41 | <p>This paragraph contains a link to <a |
| 42 | href="http://maddingue.free.fr/techie/html2wml.html" |
| 43 | >Html2Wml home page</a>. |
| 44 | |
| 45 | <p>This one contains an image. <img src="dog.jpg" |
| 46 | alt="[image of a dog]"> |
| 47 | |
| 48 | <script language=JavaScript> |
| 49 | <!-- // Begin code |
| 50 | var ua = navigator.appVersion; |
| 51 | |
| 52 | document.write("<p>a little bit of JavaScript</p>"); |
| 53 | // End code --> |
| 54 | </script> |
| 55 | |
| 56 | <p>Paragraph with a break between the two dashes -<br>- (this |
| 57 | text should be on next line). </p> |
| 58 | |
| 59 | <p>This is an incorrect paragraph: it has no closing tag. |
| 60 | |
| 61 | <TABLE class="menu"> |
| 62 | <caption align="top">Table caption</caption> |
| 63 | |
| 64 | <tr> |
| 65 | <td class="title">Col 1</td> |
| 66 | <td class="title">Col 2 |
| 67 | <td class="title">Col 3 |
| 68 | </tr> |
| 69 | |
| 70 | <tr> |
| 71 | <td>case 1-1 |
| 72 | <td>case 2-1 |
| 73 | <td>case 3-1 |
| 74 | </tr> |
| 75 | |
| 76 | <tr> |
| 77 | <td>case 1-2</td> |
| 78 | <td>case 2-2</td> |
| 79 | <td>case 3-2</td> |
| 80 | </tr> |
| 81 | |
| 82 | <tr> |
| 83 | <td>case 1-3</td> |
| 84 | <td>case 2-3</td> |
| 85 | <td>case 3-3</td> |
| 86 | </tr> |
| 87 | </table> |
| 88 | |
| 89 | <p>This following table is simpler than the previous but has a |
| 90 | very ugly HTML code. (And this paragraph is closed twice). </p> </p> |
| 91 | |
| 92 | <table> |
| 93 | <tr><td>Abc<td>Def<td>Ghi |
| 94 | <tr><td>Jkl<td>Mno<td>Pqr |
| 95 | </table> |
| 96 | |
| 97 | <p> |
| 98 | This paragraph is correct, but the <b>bold and <i>italic</b></i> |
| 99 | are inverted (this is BAD). |
| 100 | </p> |
| 101 | |
| 102 | <hr> |
| 103 | |
| 104 | <p> Just before this paragraph, there was an horizontal rule (HR tag), |
| 105 | but here is currently no way to render that. </p> |
| 106 | |
| 107 | <Hr /> |
| 108 | |
| 109 | <div class="footer"> |
| 110 | This text is in a DIV tag, not a P tag. |
| 111 | </div> |
| 112 | |
| 113 | </body> |
| 114 | </HTML> |