forrest-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cross...@apache.org
Subject cvs commit: xml-forrest/src/scratchpad/targets transform-v11.xml validate-v10.xml validate-v11.xml scratchpad.xtarget
Date Thu, 20 Jun 2002 06:37:27 GMT
crossley    2002/06/19 23:37:27

  Modified:    src/scratchpad/targets scratchpad.xtarget
  Added:       src/scratchpad/targets transform-v11.xml validate-v10.xml
                        validate-v11.xml
  Log:
  Add trial targets for transform and validate of v1.0 to v1.1 DTDs.
  
  Revision  Changes    Path
  1.2       +3 -3      xml-forrest/src/scratchpad/targets/scratchpad.xtarget
  
  Index: scratchpad.xtarget
  ===================================================================
  RCS file: /home/cvs/xml-forrest/src/scratchpad/targets/scratchpad.xtarget,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- scratchpad.xtarget	26 Feb 2002 23:50:27 -0000	1.1
  +++ scratchpad.xtarget	20 Jun 2002 06:37:27 -0000	1.2
  @@ -14,9 +14,9 @@
       <echo message=" These are SCRATCHPAD BUILDS. They are not guaranteed to work."/>
       <echo message=" You have been warned. "/>
       <echo message=" "/>
  -    <echo message=" --------------"/>
  -    <echo message=" --------------"/>
  -    <echo message=" --------------"/>
  +    <echo message=" transform-v11 ... from document-v10 to document-v11 DTD"/>
  +    <echo message=" validate-v11 .... XML validation according to v1.1 DTD"/>
  +    <echo message=" validate-v10 .... XML validation according to v1.0 DTD"/>
       <echo message=" --------------"/>
       <echo message=" --------------"/>
       <echo message=" --------------"/>
  
  
  
  1.1                  xml-forrest/src/scratchpad/targets/transform-v11.xml
  
  Index: transform-v11.xml
  ===================================================================
  <!-- try.xml ... these are trial build targets which are currently
    undergoing testing. When ready they can be moved into the main build.xml -->
  
  <!-- FIXME: See note below about Ant xmlcatalog -->
  <!DOCTYPE project [
  <!ENTITY xmlcatalog-include SYSTEM "../../../src/resources/schema/catalog-ant.xcat">
  ]>
  
  <project default="transform2v11" basedir="."
           name="Doc Transition Trial: transform from v1.0 to v1.1">
  
  <!-- =================================================================== -->
  <!-- Initialization target                                               -->
  <!-- =================================================================== -->
  <target name="transform2v11">
  
  <!-- FIXME: Not sure how to consistently include the Ant xmlcatalog yet.
    This method is working. However, we need to include it everywhere that
    we want to use it. There might be a way to include it in higher build.xml
  -->
  <echo message="Including the xmlcatalog ..."/>
  &xmlcatalog-include;
  <echo message="... done."/>
  
    <property name="v10.dir" value="src/testcases/c2/v10"/>
    <property name="v11.dir" value="src/testcases/c2/v11"/>
  
    <delete dir="${v11.dir}"/>
  
    <echo message=""/>
    <echo message="Transforming document files."/>
    <xslt basedir="${v10.dir}"
      destdir="${v11.dir}"
      extension=".xml"
      style="${resource.dir}/library/xslt/docv10todocv11.xsl"
      includes="**/*.xml"
      excludes="css/**, drafts/**, faq/faq**.xml, book.xml, **/book.xml, plan/changes-doc.xml"
    >
      <xmlcatalog refid="forrest-schema">
        <classpath>
          <pathelement location="${resource.dir}/schema" />
        </classpath>
      </xmlcatalog>
    </xslt> 
  
    <echo message=""/>
    <echo message="Transforming faq files."/>
    <xslt basedir="src/testcases/c2/v10/faq"
      destdir="src/testcases/c2/v11/faq"
      extension=".xml" 
      style="src/resources/library/xslt/faqv10tofaqv11.xsl"
      includes="*.xml"
      excludes="book.xml, index.xml"
    >
      <xmlcatalog refid="forrest-schema">
        <classpath>
          <pathelement location="${resource.dir}/schema" />
        </classpath>
      </xmlcatalog>
    </xslt> 
  		   
    <echo message=""/>
    <echo message="Transforming book.xml files."/>
    <xslt basedir="src/testcases/c2/v10"
      destdir="src/testcases/c2/v11"
      extension=".xml" 
      style="src/resources/library/xslt/bookv10.xsl"
      includes="book.xml, **/book.xml"
    >
      <xmlcatalog refid="forrest-schema">
        <classpath>
          <pathelement location="${resource.dir}/schema" />
        </classpath>
      </xmlcatalog>
    </xslt> 
  		   
    <echo message=""/>
    <echo message="Transforming changes-doc.xml file."/>
    <xslt basedir="src/testcases/c2/v10/plan"
      destdir="src/testcases/c2/v11/plan"
      extension=".xml" 
      style="src/resources/library/xslt/changesv10tochangesv11.xsl"
      includes="changes-doc.xml"
    >
      <xmlcatalog refid="forrest-schema">
        <classpath>
          <pathelement location="${resource.dir}/schema" />
        </classpath>
      </xmlcatalog>
    </xslt> 
      
  </target>
  </project>
  
  <!-- End of file -->
  
  
  
  1.1                  xml-forrest/src/scratchpad/targets/validate-v10.xml
  
  Index: validate-v10.xml
  ===================================================================
  <!-- try.xml ... these are trial build targets which are currently
    undergoing testing. When ready they can be moved into the main build.xml -->
  
  <!-- FIXME: See note below about Ant xmlcatalog -->
  <!DOCTYPE project [
  <!ENTITY xmlcatalog-include SYSTEM "../../../src/resources/schema/catalog-ant.xcat">
  ]>
  
  <project default="validate-v10" basedir="."
           name="Doc Transition Trial: validate v1.0">
  
  <!-- =================================================================== -->
  <!-- Initialization target                                               -->
  <!-- =================================================================== -->
  <target name="validate-v10">
  
  <!-- FIXME: Not sure how to consistently include the Ant xmlcatalog yet.
    This method is working. However, we need to include it everywhere that
    we want to use it. There might be a way to include it in higher build.xml
  -->
  <echo message="Including the xmlcatalog ..."/>
  &xmlcatalog-include;
  <echo message="... done."/>
  
    <property name="v10.dir" value="src/testcases/c2/v10"/>
  
    <echo message="Validating v10 xdocs."/>
    <xmlvalidate failonerror="yes" 
      lenient="no" 
      warn="yes"
      classname="org.apache.xerces.parsers.SAXParser" 
      classpath="./lib/endorsed/xerces-2.0.1.jar"
    >
      <fileset dir="${v10.dir}" includes="**/*.xml, *.xml"
        excludes="drafts/**, ctwig/**, dictionary.xml, plan/changes-doc.xml, plan/todo-doc.xml"
/>  
      <xmlcatalog refid="forrest-schema">
        <classpath>
          <pathelement location="${resource.dir}/schema" />
        </classpath>
      </xmlcatalog>
    </xmlvalidate>
  
  </target>
  </project>
  
  <!-- End of file -->
  
  
  
  1.1                  xml-forrest/src/scratchpad/targets/validate-v11.xml
  
  Index: validate-v11.xml
  ===================================================================
  <!-- try.xml ... these are trial build targets which are currently
    undergoing testing. When ready they can be moved into the main build.xml -->
  
  <!-- FIXME: See note below about Ant xmlcatalog -->
  <!DOCTYPE project [
  <!ENTITY xmlcatalog-include SYSTEM "../../../src/resources/schema/catalog-ant.xcat">
  ]>
  
  <project default="validate-v11" basedir="."
           name="Doc Transition Trial: validate v1.1">
  
  <!-- =================================================================== -->
  <!-- Initialization target                                               -->
  <!-- =================================================================== -->
  <target name="validate-v11">
  
  <!-- FIXME: Not sure how to consistently include the Ant xmlcatalog yet.
    This method is working. However, we need to include it everywhere that
    we want to use it. There might be a way to include it in higher build.xml
  -->
  <echo message="Including the xmlcatalog ..."/>
  &xmlcatalog-include;
  <echo message="... done."/>
  
    <property name="v11.dir" value="src/testcases/c2/v11"/>
  
    <echo message="Validating v11 xdocs."/>
    <xmlvalidate failonerror="yes" 
      lenient="no" 
      warn="yes"
      classname="org.apache.xerces.parsers.SAXParser" 
      classpath="./lib/endorsed/xerces-2.0.1.jar"
    >
      <fileset dir="${v11.dir}" includes="**/*.xml, *.xml"
        excludes="drafts/**, ctwig/**, dictionary.xml, plan/changes-doc.xml, plan/todo-doc.xml"
/>  
      <xmlcatalog refid="forrest-schema">
        <classpath>
          <pathelement location="${resource.dir}/schema" />
        </classpath>
      </xmlcatalog>
    </xmlvalidate>
  
  </target>
  </project>
  
  <!-- End of file -->
  
  
  

Mime
View raw message