简体   繁体   English

是否可以为docbkx-maven-plugin设置自定义XLST文件?

[英]Is it possible to set a custom XLST file for the docbkx-maven-plugin?

It seems that Docbook Maven Plugin is using its own XSLT transformation. 似乎Docbook Maven插件正在使用其自己的XSLT转换。 Is it possible to force my own transformation to it? 有可能强迫我自己转型吗?

The customizations docbkx provides is same as docbook. docbkx提供的自定义项与docbook相同。 I guess you just want to have your own customization layer that imports the docbook xsls. 我猜您只想拥有自己的自定义层,即可导入docbook xsls。

This is of course possible. 这当然是可能的。 See http://blog.kasunbg.org/2010/12/how-to-use-docbkx-tools-as-maven.html 参见http://blog.kasunbg.org/2010/12/how-to-use-docbkx-tools-as-maven.html

It provides a detailed guide on how to use docbkx-maven-plugin with your own customization layer. 它提供了有关如何在自己的自定义层中使用docbkx-maven-plugin的详细指南。

Here's the configuration 这是配置

<configuration>
      <foCustomization>src/docbkx/xsl/fo.xsl</foCustomization>
      <xhtmlCustomization>src/docbkx/xsl/xhtml.xsl </xhtmlCustomization>
</configuration>              

Additionally if you want to customize webhelp output you would use the following configuration element 另外,如果要自定义Webhelp输出,则可以使用以下配置元素

<configuration>
  <webhelpCustomization>src/docbkx/xsl/webhelp.xsl</webhelpCustomization>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM