You are viewing a plain text version of this content. The canonical link for it is here.
Posted to svn@forrest.apache.org by rg...@apache.org on 2006/12/11 23:09:18 UTC

svn commit: r485906 - /forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/document/DocumentFactory.java

Author: rgardler
Date: Mon Dec 11 14:09:17 2006
New Revision: 485906

URL: http://svn.apache.org/viewvc?view=rev&rev=485906
Log:
Add site.xml doctype from Forrest1 (note this is a hack right now, there is an RT in the docs folder on how to handle this in the future)

Modified:
    forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/document/DocumentFactory.java

Modified: forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/document/DocumentFactory.java
URL: http://svn.apache.org/viewvc/forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/document/DocumentFactory.java?view=diff&rev=485906&r1=485905&r2=485906
==============================================================================
--- forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/document/DocumentFactory.java (original)
+++ forrest/trunk/whiteboard/forrest2/core/src/core/org/apache/forrest/core/document/DocumentFactory.java Mon Dec 11 14:09:17 2006
@@ -113,6 +113,10 @@
 			type = "org.apache.forrest.hellowWorld";
 		} else if (content.contains("http://forrest.apache.org/dtd/document-v20.dtd")) {
 			type = "org.apache.forrest.xdoc2";
+		} else if (content.contains("http://forrest.apache.org/dtd/document-v20.dtd")) {
+			type = "org.apache.forrest.xdoc2";
+		} else if (content.contains("<site")) {
+			type = "org.apache.forrest.site";
 		}
 		return type;
 	}