title: Is it possible to pass custom ANT parameters into custom plugin with DITA-OT?
body: <p>I have created DITA-OT PDF plugin that works good and like it should. Next step is to pass ANT parameters into my custom plugin's overriding XSLT files. As you can see this extends pdf2 plugin processing and I have custom stylesheets which are working. </p>
  
  <p>Here is documentation about how to do this. This works for default plugins (pdf2, xhtml. etc)
  <a href="http://dita-ot.github.io/1.8/dev_ref/plugin-xsltparams.html" rel="nofollow">http://dita-ot.github.io/1.8/dev_ref/plugin-xsltparams.html</a> </p>
  
  <p>But when I try to do the same trick for my own plugin I never can run integration through. I have added following line into "plugin.xml"</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;plugin id="com.mymods.pdf"&gt;
    &lt;require plugin="org.dita.pdf2" /&gt;
    &lt;feature extension="dita.conductor.transtype.check" value="com.mymods.pdf" /&gt;
    &lt;feature extension="dita.transtype.print" value="com.mymods.pdf" /&gt;
    &lt;feature extension="dita.conductor.target.relative" file="integrator.xml" /&gt;
    &lt;feature extension="dita.conductor.com.mymods.pdf.param" file="insertParameters.xml"/&gt;
  &lt;template file="build_mymods_pdf_template.xml"/&gt;
  &lt;/plugin&gt;
  </code></pre>
  
  <p>And my "insertParameters.xml" looks like that:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='UTF-8'?&gt;
  &lt;dummy&gt;
    &lt;!-- EXAMPLE: &lt;param name="paramNameinXSLT" expression="${antProperty}" if="antProperty"/&gt; --&gt;
    &lt;param name="custom.data1" expression="${custom.data1}" if="custom.data1"/&gt;
    &lt;param name="custom.data2" expression="${custom.data2}" if="custom.data2"/&gt;
  &lt;/dummy&gt;
  </code></pre>
  
  <p>Then when I try to integrate changes into DITA-OT I get this:</p>
  
  <pre><code>BUILD FAILED
  DITA-OT1.8.4\integrator.xml:59: The following error occurred while executing this line:
  DITA-OT1.8.4\integrator.xml:49: Integration failed: Plug-in com.mymods.pdf uses an undefined extension point dita.conductor.com.mymods.pdf.param
  </code></pre>
  
  <p>One additional info: I have tried to change in "plugin.xml" one line to point to original pdf2 plugin instead of my own plugin:</p>
  
  <pre><code>&lt;feature extension="dita.conductor.pdf2.param" file="insertParameters.xsl"/&gt;
  </code></pre>
  
  <p>Then integration is successfull but then when I try to process pdf output with my plugin I get error that causes BUILD FAILED:</p>
  
  <pre><code>mycustom.xsl Fatal Error! Variable custom.data1 has not been declared (or its declaration is not in scope)
  mycustom.xsl Fatal Error! Variable custom.data2 has not been declared (or its declaration is not in scope)
  </code></pre>
  
  <p>Is it possible at all to pass ANT parameters into custom plugin XSLT processing or is it only possible to default DITA-OT transformation scenarios (pdf2,xhtml for example)? What I'm I doing wrong?</p>