maven-doxia-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=739257&view=rev
Log:
o added the xdoc xsd in the sink

Modified:
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/main/java/org/apache/maven/doxia/module/xdoc/XdocSink.java
    maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.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=739257&r1=739256&r2=739257&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:25:40 2009
@@ -113,7 +113,12 @@
         }
         write( "?>" );
 
-        writeStartTag( DOCUMENT_TAG );
+        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"
);
+
+        writeStartTag( DOCUMENT_TAG, atts );
 
         writeStartTag( PROPERTIES_TAG );
     }

Modified: maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java
URL: http://svn.apache.org/viewvc/maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java?rev=739257&r1=739256&r2=739257&view=diff
==============================================================================
--- maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java
(original)
+++ maven/doxia/doxia/trunk/doxia-modules/doxia-module-xdoc/src/test/java/org/apache/maven/doxia/module/xdoc/XdocSinkTest.java
Fri Jan 30 12:25:40 2009
@@ -72,7 +72,11 @@
     /** {@inheritDoc} */
     protected String getHeadBlock()
     {
-        return "<?xml version=\"1.0\" encoding=\"UTF-8\"?><document><properties></properties>";
+        return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
+            + "<document xmlns=\"http://maven.apache.org/XDOC/2.0\" "
+            + "xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" "
+            + "xsi:schemaLocation=\"http://maven.apache.org/XDOC/2.0 http://maven.apache.org/xsd/xdoc-2.0.xsd\">"
+            + "<properties></properties>";
     }
 
     /** {@inheritDoc} */



Mime
View raw message