You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by di...@apache.org on 2003/05/28 01:25:55 UTC

cvs commit: maven/src/plugins-build/docbook/xdocs properties.xml

dion        2003/05/27 16:25:55

  Modified:    src/plugins-build/docbook plugin.jelly
               src/plugins-build/docbook/xdocs properties.xml
  Log:
  Applied Maven-436 patch
  
  Revision  Changes    Path
  1.5       +25 -9     maven/src/plugins-build/docbook/plugin.jelly
  
  Index: plugin.jelly
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/docbook/plugin.jelly,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- plugin.jelly	27 Mar 2003 13:14:25 -0000	1.4
  +++ plugin.jelly	27 May 2003 23:25:55 -0000	1.5
  @@ -6,7 +6,7 @@
     <!-- ================================================================== -->
     <!-- S I M P L E   D O C B O O K   D O C U M E N T A T I O N            -->
     <!-- ================================================================== -->
  -  <goal 
  +  <goal
       name="docbook:transform"
       prereqs="xdoc:init"
       description="Transform any docbook-simple source into xdocs for later use">
  @@ -15,13 +15,29 @@
         value="${pom.getPluginContext('maven-xdoc-plugin').getVariable('maven.gen.docs')}"/>
   
       ${systemScope.setProperty('javax.xml.transform.TransformerFactory','org.apache.xalan.processor.TransformerFactoryImpl')}
  -    <ant:style 
  -      basedir="${maven.docbook.src}"
  -      destdir="${genDocs}" extension=".xml"
  -      style="${plugin.resources}/docbook2document.xsl"
  -      includes="**/*.xml, **/*.sgml"
  -    />
  -      
  +    <j:set var="dtd" value="${maven.docbook.dtd}"/>
  +    <j:if test="${empty(dtd)}">
  +      <ant:style
  +        basedir="${maven.docbook.src}"
  +        destdir="${genDocs}" extension=".xml"
  +        style="${plugin.resources}/docbook2document.xsl"
  +        includes="**/*.xml, **/*.sgml"
  +      />
  +    </j:if>
  +    <j:if test="${!empty(dtd)}">
  +       <echo>Using offline DocBook DTD ${maven.docbook.dtd}</echo>
  +       <ant:style
  +        basedir="${maven.docbook.src}"
  +        destdir="${genDocs}" extension=".xml"
  +        style="${plugin.resources}/docbook2document.xsl"
  +        includes="**/*.xml, **/*.sgml">
  +        <ant:xmlcatalog id="cat">
  +          <ant:dtd
  +            publicId="-//OASIS//DTD DocBook XML V4.1.2//EN"
  +            location="${maven.docbook.dtd}"/>
  +        </ant:xmlcatalog>
  +      </ant:style>
  +    </j:if>
     </goal>
  -  
  +
   </project>
  
  
  
  1.2       +11 -0     maven/src/plugins-build/docbook/xdocs/properties.xml
  
  Index: properties.xml
  ===================================================================
  RCS file: /home/cvs/maven/src/plugins-build/docbook/xdocs/properties.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- properties.xml	24 Jan 2003 03:45:09 -0000	1.1
  +++ properties.xml	27 May 2003 23:25:55 -0000	1.2
  @@ -22,6 +22,17 @@
               source directory for the simple docbook xml files
             </td>
           </tr>
  +        <tr>
  +          <td>maven.docbook.dtd</td>
  +          <td>Yes</td>
  +          <td>
  +            If set, it points to the offline DocBook DTD.
  +            This allows offline transformation and DTD checking.
  +            DocBook DTD is available for download at
  +            <a href="http://www.oasis-open.org/docbook/xml/4.1.2/index.shtml">http://www.oasis-open.org/docbook/xml/4.1.2/index.shtml</a>.
  +            Example value: "/home/msk/docbook-dtd/docbookx.dtd"
  +          </td>
  +        </tr>
         </table>
       </section>
     </body>
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org