dita2docbook_template.xsl 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!-- This file is part of the DITA Open Toolkit project hosted on
  3. Sourceforge.net. See the accompanying license.txt file for
  4. applicable licenses.-->
  5. <!-- (c) Copyright IBM Corp. 2004, 2005 All Rights Reserved. -->
  6. <xsl:stylesheet version="2.0"
  7. xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  8. <xsl:import href="docbook/util.xsl"/>
  9. <xsl:import href="docbook/topic2db.xsl"/>
  10. <xsl:import href="docbook/highlight2db.xsl"/>
  11. <xsl:import href="docbook/programming2db.xsl"/>
  12. <xsl:import href="docbook/software2db.xsl"/>
  13. <xsl:import href="docbook/ui2db.xsl"/>
  14. <dita:extension id="dita.xsl.docbook" behavior="org.dita.dost.platform.ImportXSLAction" xmlns:dita="http://dita-ot.sourceforge.net"/>
  15. <xsl:output
  16. method="xml"
  17. indent="yes"
  18. omit-xml-declaration="no"
  19. standalone="no"
  20. doctype-public="-//OASIS//DTD DocBook XML V4.2//EN"
  21. doctype-system="http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"/>
  22. <!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  23. - DOCUMENT
  24. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
  25. <xsl:template match="/">
  26. <xsl:apply-templates/>
  27. </xsl:template>
  28. <xsl:template match="dita">
  29. <section>
  30. <title/>
  31. <xsl:apply-templates/>
  32. </section>
  33. </xsl:template>
  34. </xsl:stylesheet>