maven-doxia-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vsive...@apache.org
Subject svn commit: r739258 - /maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocSink.java
Date Fri, 30 Jan 2009 12:30:53 GMT
Author: vsiveton
Date: Fri Jan 30 12:30:53 2009
New Revision: 739258

URL: http://svn.apache.org/viewvc?rev=739258&view=rev
Log:
o added a constant for xdoc system id

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocSink.java

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocSink.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocSink.java?rev=739258&r1=739257&r2=739258&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocSink.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocSink.java
Fri Jan 30 12:30:53 2009
@@ -45,6 +45,9 @@
     extends XhtmlBaseSink
     implements XdocMarkup
 {
+    /** XDoc system id: "http://maven.apache.org/xsd/xdoc-2.0.xsd" */
+    public static final String XDOC_SYSTEM_ID = "http://maven.apache.org/xsd/xdoc-2.0.xsd";
+
     // ----------------------------------------------------------------------
     // Instance fields
     // ----------------------------------------------------------------------
@@ -116,7 +119,7 @@
         MutableAttributeSet atts = new SinkEventAttributeSet();
         atts.addAttribute( "xmlns", "http://maven.apache.org/XDOC/2.0" );
         atts.addAttribute( "xmlns:xsi", "http://www.w3.org/2001/XMLSchema-instance" );
-        atts.addAttribute( "xsi:schemaLocation", "http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd"
);
+        atts.addAttribute( "xsi:schemaLocation", "http://maven.apache.org/XDOC/2.0 " + XDOC_SYSTEM_ID
);
 
         writeStartTag( DOCUMENT_TAG, atts );
 



Mime
View raw message