forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From je...@apache.org
Subject cvs commit: xml-forrest build.xml
Date Sun, 10 Aug 2003 13:07:45 GMT
jefft       2003/08/10 06:07:45

  Modified:    .        build.xml
  Log:
  Add a task for generating DTDs with all entities expanded.  Uses NekoDTD
  
  Revision  Changes    Path
  1.69      +34 -0     xml-forrest/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-forrest/build.xml,v
  retrieving revision 1.68
  retrieving revision 1.69
  diff -u -r1.68 -r1.69
  --- build.xml	30 Jul 2003 16:35:46 -0000	1.68
  +++ build.xml	10 Aug 2003 13:07:45 -0000	1.69
  @@ -564,4 +564,38 @@
         basedir="${build.components.classes}"/>
     </target>
   
  +
  +  <!-- =================================================================== -->
  +  <!-- Generate DTDs with entities expanded                                -->
  +  <!-- =================================================================== -->
  +  <target name='expand-dtd' depends="init" description="Generates '-full' DTDs,
  +	  with all entity refs expanded, for use with catalog-ignorant editors like
  +	  IDEA">
  +
  +	<taskdef name="dtd2xml" classpathref="classpath" classname="org.cyberneko.dtd.anttasks.DTD2XML"/>
  +	<property name="dtdx.dir" location="build/tmp/dtdx"/>
  +	<mkdir dir="${dtdx.dir}"/>
  +	<!-- Generate an intermediate XML representation of each DTD -->
  +	<dtd2xml classpathref="classpath" outputDir="${dtdx.dir}" extension=".dtdx">
  +		<fileset dir="${resource.dir}/schema/dtd">
  +			<include name="changes-v12.dtd"/>
  +			<include name="document-v11.dtd"/>
  +			<include name="document-v12.dtd"/>
  +			<include name="faq-v12.dtd"/>
  +			<include name="howto-v12.dtd"/>
  +			<include name="todo-v12.dtd"/>
  +			<include name="v20a/document-v20.dtd"/>
  +			<include name="v20a/faq-v20.dtd"/>
  +		</fileset>
  +	</dtd2xml>
  +
  +	<!-- Now transform the intermediate format back to the regular DTD format -->
  +	<!-- Note that we could also transform to XSD or RNG -->
  +	<xslt basedir="${dtdx.dir}"
  +		destdir="${dist-shbat.dir}/context/resources/schema/dtd"
  +		extension="-full.dtd"
  +		style="tools/dtdconverters/dtdx2dtd.xsl"/>
  +</target>
  +
  +
   </project>
  
  
  

Mime
View raw message