plugin-extension-points-xslt-parameters.dita 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd">
  3. <!-- This file is part of the DITA Open Toolkit project. See the accompanying LICENSE file for applicable license. -->
  4. <reference id="plugin-extension-points-xslt-parameters">
  5. <title>XSLT-parameter extension points</title>
  6. <shortdesc>You can use theses extension points to pass parameters into existing XSLT steps in both the pre-processing
  7. pipeline and DITA-OT transformation. The parameters generally will be available as global
  8. <xmlelement>xsl:param</xmlelement> values with XSLT overrides.</shortdesc>
  9. <refbody>
  10. <section>
  11. <title>Pre-processing</title>
  12. <p>You can use the following extension points to pass parameters to modules in the pre-processing pipeline:</p>
  13. <dl>
  14. <dlentry>
  15. <dt><parmname>dita.preprocess.conref.param</parmname></dt>
  16. <dd>Pass parameters to the <codeph>conref</codeph> module in the pre-processing pipeline</dd>
  17. </dlentry>
  18. <dlentry>
  19. <dt><parmname>dita.preprocess.maplink.param</parmname></dt>
  20. <dd>Pass parameters to the <codeph>maplink</codeph> module in the pre-processing pipeline</dd>
  21. </dlentry>
  22. <dlentry>
  23. <dt><parmname>dita.preprocess.mappull.param</parmname></dt>
  24. <dd>Pass parameters to the <codeph>mappull</codeph> module in the pre-processing pipeline</dd>
  25. </dlentry>
  26. <dlentry>
  27. <dt><parmname>dita.preprocess.mapref.param</parmname></dt>
  28. <dd>Pass parameters to the <codeph>mapref</codeph> module in the pre-processing pipeline</dd>
  29. </dlentry>
  30. <dlentry>
  31. <dt><parmname>dita.preprocess.topicpull.param</parmname></dt>
  32. <dd>Pass parameters to the <codeph>topicpull</codeph> module in the pre-processing pipeline</dd>
  33. </dlentry>
  34. </dl>
  35. </section>
  36. <section>
  37. <title>Transformations</title>
  38. <p>You can use the following extension points to pass parameters to modules in DITA-OT transformations:</p>
  39. <dl>
  40. <dlentry>
  41. <dt><parmname>dita.conductor.eclipse.toc.param</parmname></dt>
  42. <dd conaction="pushreplace"
  43. conref="extension-points-in-org.dita.eclipsehelp.dita#org.dita.eclipsehelp-ext/dita.conductor.eclipse.toc.param.desc"
  44. >Pass parameters to the XSLT step that generates the Eclipse Help table of contents (TOC).</dd>
  45. </dlentry>
  46. <dlentry>
  47. <dt><parmname>dita.conductor.html.param</parmname></dt>
  48. <dd conaction="pushreplace"
  49. conref="extension-points-in-org.dita.xhtml.dita#org.dita.xhtml-ext/dita.conductor.html.param.desc"
  50. >Pass parameters to the <?oxy_comment_start author="Roger"comment="Verify"?>HTML and<?oxy_comment_end?> HTML
  51. Help transformations.</dd>
  52. </dlentry>
  53. <dlentry>
  54. <dt><parmname>dita.conductor.html5.param</parmname></dt>
  55. <dd conaction="pushreplace"
  56. conref="extension-points-in-org.dita.html5.dita#org.dita.html5-ext/dita.conductor.html5.param.desc"
  57. >Pass parameters to the HTML5 transformation.</dd>
  58. </dlentry>
  59. <dlentry>
  60. <dt><parmname>dita.conductor.html5.toc.param</parmname></dt>
  61. <dd conaction="pushreplace"
  62. conref="extension-points-in-org.dita.html5.dita#org.dita.html5-ext/dita.conductor.html5.toc.param.desc"
  63. >Pass parameters to the XSLT step that generates the HTML5 table of contents (TOC).</dd>
  64. </dlentry>
  65. <dlentry>
  66. <dt><parmname>dita.conductor.pdf2.param</parmname></dt>
  67. <dd conaction="pushreplace"
  68. conref="extension-points-in-org.dita.pdf2.dita#org.dita.pdf2-ext/dita.conductor.pdf2.param.desc"
  69. >Pass parameters to the PDF transformation.</dd>
  70. </dlentry>
  71. <dlentry>
  72. <dt><parmname>dita.conductor.xhtml.param</parmname></dt>
  73. <dd conaction="pushreplace"
  74. conref="extension-points-in-org.dita.xhtml.dita#org.dita.xhtml-ext/dita.conductor.xhtml.param.desc"
  75. >Pass parameters to the XHTML and Eclipse Help transformations.</dd>
  76. </dlentry>
  77. <dlentry>
  78. <dt><parmname>dita.conductor.xhtml.toc.param</parmname></dt>
  79. <dd conaction="pushreplace"
  80. conref="extension-points-in-org.dita.xhtml.dita#org.dita.xhtml-ext/dita.conductor.xhtml.toc.param.desc"
  81. >Pass parameters to the XSLT step that generates the XHTML table of contents (TOC).</dd>
  82. </dlentry>
  83. </dl>
  84. </section>
  85. <example>
  86. <title>Example</title>
  87. <p>The following two files represent a complete (albeit simple) plug-in that passes the parameters defined in the
  88. <filepath>insertParameters.xml</filepath> file to the XHTML transformation process.</p>
  89. <fig>
  90. <title>Contents of the <filepath>plugin.xml</filepath> file</title>
  91. <codeblock>&lt;plugin id="com.example.newparam">
  92. &lt;feature extension="dita.conductor.xhtml.param" file="insertParameters.xml"/>
  93. &lt;/plugin></codeblock>
  94. </fig>
  95. <fig>
  96. <title>Contents of the <filepath>insertParameters.xml</filepath></title>
  97. <codeblock>&lt;dummy>
  98. &lt;!-- Any Ant code allowed in xslt task is possible. Common example: -->
  99. &lt;param name="paramNameinXSLT" expression="${antProperty}" if="antProperty"/>
  100. &lt;/dummy></codeblock>
  101. </fig>
  102. </example>
  103. </refbody>
  104. </reference>