<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" %><%@ taglib uri="/WEB-INF/struts-i18n.tld" prefix="i18n" %>
<?xml-stylesheet href="standardstyle.css" title="Standard Stylesheet" type="text/css"?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" [
 <!ELEMENT greeting (#PCDATA)>
 <!ENTITY p CDATA "<p>">
]>
<HTML>
<HEAD>
 <title>Jericho HTML Parser Test Document</title>
 <meta name="DESCRIPTION" content="Document containing many elements with optional end tags, server-side tags and some common illegal HTML constructs to demonstrate how they are interpreted by the parser." />
 <meta name="keywords" content="HTML parser,test document,R&amp;D" />
<BODY>
<H2>Test HTML Document</H2>
<p>This paragraph contains character references: &euro; and &#169;.</p>
<!-- <p>This paragraph is commented out</p> -->
<input type="button" value="Click here to execute script" title="simply writes some text using document.write"
  onclick="document.write('<h2>This element is defined inside an onclick attribute</h2>')"/>
<p>The following text demonstrates the use of a CDATA section which has limited browser compatability</p>
<![CDATA[
 <an> example of <sgml> markup that is not <painful> to write with < and such.
]]>
<script language="javascript" type="text/javascript">   
 document.writeln("<p>This P element is ignored because it is inside a SCRIPT element.</p>");
</script>
<script language="javascript" type="text/javascript">
 //<![CDATA[
  document.writeln("<p>Both the P element and the CDATA section are ignored by the parser, which automatically treats script element content as CDATA.</p>");
 //]]>
</script>
<script language="javascript" type="text/javascript">
 //<!--
  document.writeln("<p>Both the P element and the comment are ignored by the parser.</p>");
 //-->
 //<p>This paragraph is not recognised as it is still inside the script element</p>
</script>
<!--
 Here are some tests for tags inside a comment:
 <h2>heading</h2> - not recognised.
 <% server tag %> - is recognised.
 <?target processing instruction?> - not recognised, unless the PHPTagTypes.PHP_SHORT tag type has been registered.
-->
<hr>
<%--
 Here are some tests for tags inside a server comment:
 <h2>heading</h2> - not recognised.
 <% server tag %> - not recognised.
--%>
<hr>
<*abc def="ghi">
 This is an example of an element from a hypothetical server language 
 whose tag formats have not been registered with the TagTypeRegister class 
</*abc>
<p>This a very long text segment
[encoded data, 20020 characters]
</p>
<!-- This is a very long comment
[encoded data, 20020 characters]
-->
</html>
