plugin-sample.dita 1.8 KB

12345678910111213141516171819202122232425262728293031323334
  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-sample" xml:lang="en-US">
  5. <title>Example plugin.xml file</title>
  6. <shortdesc>The following is a sample of a <filepath>plugin.xml</filepath> file. This file adds support for a new set
  7. of specialized DTDs, and includes an override for the XHTML output processor.</shortdesc>
  8. <prolog>
  9. <metadata>
  10. <keywords>
  11. <indexterm>DITA<indexterm>specializations</indexterm></indexterm>
  12. <indexterm>DTD</indexterm>
  13. <indexterm>plug-ins<indexterm>DITA specializations</indexterm></indexterm>
  14. <indexterm>plug-ins<indexterm><filepath>plugin.xml</filepath></indexterm></indexterm>
  15. <indexterm><filepath>plugin.xml</filepath></indexterm>
  16. </keywords>
  17. </metadata>
  18. </prolog>
  19. <refbody>
  20. <section>
  21. <p>This <filepath>plugin.xml</filepath> file would go into a directory such as
  22. <filepath>DITA-OT/plugins/music/</filepath> and referenced supporting files would also exist in that
  23. directory. A more extensive sample using these values is available in the actual music plug-in, available on
  24. <xref format="html" href="https://sourceforge.net/projects/dita-ot/files/Plug-in_%20Music/" scope="external"
  25. >SourceForge</xref>.</p>
  26. </section>
  27. <example><codeblock outputclass="language-xml normalize-space show-line-numbers show-whitespace">&lt;plugin id="org.metadita.specialization.music">
  28. &lt;feature extension="dita.specialization.catalog.relative"
  29. file="catalog-dita.xml"/>
  30. &lt;feature extension="dita.xsl.xhtml" file="xsl/music2xhtml.xsl"/>
  31. &lt;/plugin></codeblock></example>
  32. </refbody>
  33. </reference>