AI写作智能体 自主规划任务,支持联网查询和网页读取,多模态高效创作各类分析报告、商业计划、营销方案、教学内容等。 广告
# B.52 XsltTask With `XsltTask`, you can run a XSLT transformation on an XML file. Actually, `XsltTask` extends `CopyTask`, so you can use all the elements allowed there. `XsltTask` is implemented by means of the `XsltFlter` and hence relies on PHP5 XSLT support via (`libxslt`) which must be available in php5. The `XsltTask` is equivalent to running command line `xsltproc` since that is a frontend for libxslt. Table B.54:聽Attributes NameTypeDescriptionDefaultRequired`style``String`The path where the Xslt file is locatedn/aYes`resolvedocumentexternals``Boolean`Whether to resolve entities in the XML document. (see [this link](http://www.php.net/manual/en/class.domdocument.php#domdocument.props.resolveexternals) for details)`false`No`resolvestylesheetexternals``Boolean`Whether to resolve entities in the stylesheet.`false`No `Note:` You can also use all the attributes available for [Section聽B.11](apbs11.html "B.11 CopyTask"). B.52.1 Examples ``` <!-- Transform docbook with an imaginary XSLT file --> <xslt todir="/srv/docs/phing" style="dbk2html.xslt" > <fileset dir="."> <include name="**/*.xml" /> </fileset> </xslt> ``` B.52.2 Supported Nested Tags - `mapper` - `filterchain` - `param` `Note:` You can use all the elements also available for [Section聽B.11](apbs11.html "B.11 CopyTask"). Additionally, you can use `<param>` tags with a `name` and a `expression` (or `value` alias) attribute. These parameters are then available from within the xsl style sheet.