ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ste...@apache.org
Subject cvs commit: jakarta-ant/src/etc/testcases/taskdefs/optional/xml about.xml doc.dtd doc.xsl validate.xml
Date Mon, 15 Apr 2002 06:35:18 GMT
stevel      02/04/14 23:35:18

  Added:       src/etc/testcases/taskdefs/optional xmlvalidate.xml xslt.xml
               src/etc/testcases/taskdefs/optional/xml about.xml doc.dtd
                        doc.xsl validate.xml
  Log:
  two tests sharing the same data set
  
  Revision  Changes    Path
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/xmlvalidate.xml
  
  Index: xmlvalidate.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  <project name="validate" default="testValidate" basedir=".">
  
    <target name="testValidate">
      <xmlvalidate warn="false">
        <fileset dir="xml" includes="**/about.xml"/>  
         <dtd publicID="-//stevo//DTD doc 1.0//EN"
           location="xml/doc.dtd"/>
      </xmlvalidate>
    </target>
    
    <target name="testDeepValidate">
      <ant dir="xml" 
        antfile="validate.xml"
        target="testValidate"/>
    </target>
    
  </project>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/xslt.xml
  
  Index: xslt.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  
  <project name="xslt" default="xslt" basedir=".">
    <target name="init">
        <mkdir dir="xml/out"/>
    </target>
  
    <target name="teardown">
        <delete dir="xml/out"/>
    </target>
    
    <target name="testCatchNoDtd" depends="init">
      <style basedir="xml" destdir="xml/out"
             includes="about.xml"
             extension=".txt"
             style="xml/doc.xsl">
       </style>
    </target>
    
    <xmlcatalog id="xdocs.catalog">
     <dtd publicID="-//stevo//DTD doc 1.0//EN"
       location="xml/doc.dtd"/>
    </xmlcatalog>  
    
    <target name="testCatalog" depends="init">
      <style destdir="xml/out"
             includes="about.xml"
             extension=".txt"
             style="xml/doc.xsl">
         <xmlcatalog refid="xdocs.catalog"/>
       </style>
    </target>
  
    
  </project>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/xml/about.xml
  
  Index: about.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  <!DOCTYPE doc PUBLIC
    "-//stevo//DTD doc 1.0//EN"
    "nap:chemical+brothers"
    >
  <doc>
    <section title="About">
    in the absence of technology, there is only marketing
    </section>
  </doc>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/xml/doc.dtd
  
  Index: doc.dtd
  ===================================================================
  <!ELEMENT doc (section) >
  <!ELEMENT section (#PCDATA)>
  <!ATTLIST section title CDATA #IMPLIED>
  
  
  
  
  
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/xml/doc.xsl
  
  Index: doc.xsl
  ===================================================================
  <xsl:stylesheet 
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:template="struts template" 
      version="1.0">
  <xsl:output method="text"/>
  <xsl:template match="/">
  <xsl:value-of select="/doc/section"/>
  </xsl:template> 
  </xsl:stylesheet>
  
  
  
  1.1                  jakarta-ant/src/etc/testcases/taskdefs/optional/xml/validate.xml
  
  Index: validate.xml
  ===================================================================
  <?xml version="1.0" encoding="UTF-8" ?>
  <project name="validate" default="testValidate" basedir=".">
  
   <target name="testValidate">
      <xmlvalidate warn="false">
        <fileset dir="." includes="about.xml"/>  
         <dtd publicID="-//stevo//DTD doc 1.0//EN"
           location="doc.dtd"/>
      </xmlvalidate>
    </target>
    
  </project>
  
  
  

--
To unsubscribe, e-mail:   <mailto:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message