您的问题是由隐式文件集功能引起的。为了使用嵌套的文件集参数,您需要关闭此功能。
我还建议在文件集中使用一个“include”参数,这要简单得多,并且避免使用复杂的mapper元素(您必须指定生成文件的扩展名,否则它将默认为.html)
<target name="preprocess-stylesheets" depends="init">
<xslt
classpathref="xslt-processor-classpath"
style="src/xslt/util/preprocess_import.xsl"
destdir="build"
extension=".xsl"
useImplicitFileset="false"
>
<fileset dir="src/xslt/backends">
<include name="StatePatternStatechartGenerator.xsl"/>
<include name="StateTableStatechartGenerator.xsl"/>
<include name="SwitchyardStatechartGenerator.xsl"/>
</fileset>
</xslt>
</target>