maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r701262 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Date Thu, 02 Oct 2008 22:34:02 GMT
Author: vsiveton
Date: Thu Oct  2 15:34:02 2008
New Revision: 701262

URL: http://svn.apache.org/viewvc?rev=701262&view=rev
Log:
o defined some static fields for xhtml

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java?rev=701262&r1=701261&r2=701262&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-xhtml/src/main/java/org/apache/maven/doxia/module/xhtml/XhtmlSink.java
Thu Oct  2 15:34:02 2008
@@ -44,6 +44,15 @@
     extends XhtmlBaseSink
     implements XhtmlMarkup
 {
+    /** XHTML 1.0 public id: "-//W3C//DTD XHTML 1.0 Transitional//EN" */
+    public static final String XHTML_PUBLIC_ID = "-//W3C//DTD XHTML 1.0 Transitional//EN";
+
+    /** XHTML 1.0 system id: "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" */
+    public static final String XHTML_SYSTEM_ID = "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";
+
+    /** XHTML xmlns: "http://www.w3.org/1999/xhtml" */
+    public static final String XHTML_XMLLNS = "http://www.w3.org/1999/xhtml";
+
     // ----------------------------------------------------------------------
     // Instance fields
     // ----------------------------------------------------------------------
@@ -93,8 +102,8 @@
 
         setHeadFlag( true );
 
-        write( "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">"
);
-        write( "<html xmlns=\"http://www.w3.org/1999/xhtml\">" );
+        write( "<!DOCTYPE html PUBLIC \"" + XHTML_PUBLIC_ID + "\" \"" + XHTML_SYSTEM_ID
+ "\">" );
+        write( "<html xmlns=\"" + XHTML_XMLLNS + "\">" );
 
         writeStartTag( Tag.HEAD );
     }



Mime
View raw message