Xslt 是否可能使用DITA OT 1.8.5中的XHTML插件将目录复制并粘贴到特定目录

Xslt 是否可能使用DITA OT 1.8.5中的XHTML插件将目录复制并粘贴到特定目录,xslt,xhtml,dita,oxygenxml,dita-ot,Xslt,Xhtml,Dita,Oxygenxml,Dita Ot,目录或文件是否可能从org.dita.xhtml中的“resource”文件夹复制到xhtml dita OT转换生成的out文件夹 如果在插件中使用xsl更改是可能的,那么它可能的方法就是向我提供代码 还有其他方法吗?请指导我该怎么做 请帮助我。您应该使用分机点或另一个适合您需要的分机点呼叫 plugin.xml <plugin id="com.example.extendchunk"> <feature extension="depend.preprocess.post

目录或文件是否可能从org.dita.xhtml中的“resource”文件夹复制到xhtml dita OT转换生成的out文件夹

如果在插件中使用xsl更改是可能的,那么它可能的方法就是向我提供代码

还有其他方法吗?请指导我该怎么做

请帮助我。

您应该使用分机点或另一个适合您需要的分机点呼叫

plugin.xml

<plugin id="com.example.extendchunk">
  <feature extension="depend.preprocess.post" value="copyfiles"/>
  <feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
</plugin> 
<dummy>
  <import file="myAntStuff.xml"/>
</dummy>
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myAntStuff">
  <target name="copyfiles">
    <copy todir="foo">
      <fileset>
        <include name="**/*.bar"/>
      </fileset>
    </copy>
  </target>
</project>

myAntStuffWrapper.xml

<plugin id="com.example.extendchunk">
  <feature extension="depend.preprocess.post" value="copyfiles"/>
  <feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
</plugin> 
<dummy>
  <import file="myAntStuff.xml"/>
</dummy>
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myAntStuff">
  <target name="copyfiles">
    <copy todir="foo">
      <fileset>
        <include name="**/*.bar"/>
      </fileset>
    </copy>
  </target>
</project>

myAntStuff.xml

<plugin id="com.example.extendchunk">
  <feature extension="depend.preprocess.post" value="copyfiles"/>
  <feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
</plugin> 
<dummy>
  <import file="myAntStuff.xml"/>
</dummy>
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myAntStuff">
  <target name="copyfiles">
    <copy todir="foo">
      <fileset>
        <include name="**/*.bar"/>
      </fileset>
    </copy>
  </target>
</project>

您应该使用扩展点或另一个适合您需要的扩展点来调用

plugin.xml

<plugin id="com.example.extendchunk">
  <feature extension="depend.preprocess.post" value="copyfiles"/>
  <feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
</plugin> 
<dummy>
  <import file="myAntStuff.xml"/>
</dummy>
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myAntStuff">
  <target name="copyfiles">
    <copy todir="foo">
      <fileset>
        <include name="**/*.bar"/>
      </fileset>
    </copy>
  </target>
</project>

myAntStuffWrapper.xml

<plugin id="com.example.extendchunk">
  <feature extension="depend.preprocess.post" value="copyfiles"/>
  <feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
</plugin> 
<dummy>
  <import file="myAntStuff.xml"/>
</dummy>
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myAntStuff">
  <target name="copyfiles">
    <copy todir="foo">
      <fileset>
        <include name="**/*.bar"/>
      </fileset>
    </copy>
  </target>
</project>

myAntStuff.xml

<plugin id="com.example.extendchunk">
  <feature extension="depend.preprocess.post" value="copyfiles"/>
  <feature extension="dita.conductor.target.relative" file="myAntStuffWrapper.xml"/>
</plugin> 
<dummy>
  <import file="myAntStuff.xml"/>
</dummy>
<?xml version="1.0" encoding="UTF-8"?>
<project basedir="." name="myAntStuff">
  <target name="copyfiles">
    <copy todir="foo">
      <fileset>
        <include name="**/*.bar"/>
      </fileset>
    </copy>
  </target>
</project>


@Stefan Eike,请解释一下标记“todir”中的属性规范是目标目录。“*/.bar”表示当前目录和所有子目录中以.bar结尾的所有文件。谷歌搜索“Ant文件集”如果我想将文件和文件夹从“C:\DITA-OT\DITA-OT1.8.5-XHTML\plugins\org.DITA.XHTML\resource”复制到由插件创建的输出目录中(E:\out\XHTML),那么我如何添加属性todir=“foo”和name=“*/.bar”的标记,并请给我标记代码。提前感谢@Stefan Eike,请解释一下标记“todir”中的那些属性规范是目标目录。“*/.bar”表示当前目录和所有子目录中以.bar结尾的所有文件。谷歌搜索“Ant文件集”如果我想将文件和文件夹从“C:\DITA-OT\DITA-OT1.8.5-XHTML\plugins\org.DITA.XHTML\resource”复制到由插件创建的输出目录中(E:\out\XHTML),那么我如何添加属性todir=“foo”和name=“*/.bar”的标记,并请给我标记代码。提前谢谢