W3C home > Mailing lists > Public > www-validator-cvs@w3.org > February 2008

2006/unicorn/org/w3c/unicorn/output XHTMLize.java,1.3,1.4

From: Hiep Duong via cvs-syncmail <cvsmail@w3.org>
Date: Wed, 20 Feb 2008 15:10:01 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1JRqa9-0007zw-Dh@lionel-hutz.w3.org>

Update of /sources/public/2006/unicorn/org/w3c/unicorn/output
In directory hutz:/tmp/cvs-serv30553/org/w3c/unicorn/output

Modified Files:
	XHTMLize.java 
Log Message:
simplified observationresponse and generalize output format (now we can map a format type what defnied in the contract to a ResponseParser)

Index: XHTMLize.java
===================================================================
RCS file: /sources/public/2006/unicorn/org/w3c/unicorn/output/XHTMLize.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- XHTMLize.java	29 Nov 2007 14:11:59 -0000	1.3
+++ XHTMLize.java	20 Feb 2008 15:09:59 -0000	1.4
@@ -1,9 +1,9 @@
 package org.w3c.unicorn.output;
 
 import org.apache.velocity.app.event.ReferenceInsertionEventHandler;
-import org.w3c.unicorn.generated.observationresponse.Code;
-import org.w3c.unicorn.generated.observationresponse.A;
-import org.w3c.unicorn.generated.observationresponse.Img;
+import org.w3c.unicorn.response.Code;
+import org.w3c.unicorn.response.A;
+import org.w3c.unicorn.response.Img;
 
 
 /**
@@ -45,6 +45,9 @@
 			if (oElement instanceof Img) {
 				sResultat += insertImg((Img) oElement);
 			}
+			//else if (oElement instanceof Code) {
+			//	sResultat += insertCode((Code) oElement);
+			//}
 			else {				
 				sResultat += EscapeXMLEntities.escapeText(oElement.toString());
 			}
Received on Wednesday, 20 February 2008 15:10:10 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 12:55:00 GMT