User Tools

Site Tools


projects:doxy2doku

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
projects:doxy2doku [2014/07/20 18:12] – created mkuciaprojects:doxy2doku [2014/08/03 22:12] (current) mkucia
Line 1: Line 1:
-====== Doxygen to DokuWiki ====== +====== Doxygen XML to DokuWiki XLS transformation ====== 
-<WRAP center todo 60%> +Doxygen is a great tool that properly used can save significant amount of time during software development. Doxygen can process data using limited number of output formats. Thankfully it can generate XML output that can be converted into any format.
-Page under construction! +
-</WRAP>+
  
-XSLT for doxygen XML output+I am using [[wp>XSLT]] to generate dokuwiki page. 
 +===== Step 1: Build Doxygen XML files ===== 
 +I like to use doxywizard. 
 +===== Step 2: Merge XML files into single one ===== 
 +''msxsl.exe ./xml/index.xml ./xml/combine.xslt -o ./xml/combined.xml''
  
-<code=xml> +===== Step 3Build DokuWiki textfiles ===== 
-<?xml version="1.0" encoding="UTF-8" ?> +''msxsl.exe ./xml/combined.xml transform.xsl -o wikipage.txt'' 
-<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> +===== Step 4Copy DokuWiki files ===== 
-<xsl:output omit-xml-declaration="yes" method="xml" version="1.0" indent="no" /> +To the dokuwiki pages directory
- <xsl:template match="compounddef">====== <xsl:value-of select="./compoundname"/> ====== +===== Summary =====
- +
-===== Namespaces =====  +
-<xsl:for-each select="innernamespace">  * [[<xsl:value-of select="./@refid"/>|<xsl:value-of select="."/>]] +
-</xsl:for-each> +
- +
-===== Class ===== +
-<xsl:for-each select="innerclass">  * [[<xsl:value-of select="./@refid"/>|<xsl:value-of select="."/>]] +
-</xsl:for-each> +
- +
-</xsl:template> +
-   +
-</xsl:stylesheet> +
-</code> +
- +
-How to use with msxsl: ''msxsl input.xml transform.xsl -o output.txt''+
  
 +  * {{:projects:doxwiki.zip|Project ZIP}}
 +  * [[projects:doxy2doku:sampleOutput| Sample output ]]
 ==== References ==== ==== References ====
   * http://www.w3schools.com/xsl/   * http://www.w3schools.com/xsl/
   * http://www.w3.org/TR/xslt   * http://www.w3.org/TR/xslt
projects/doxy2doku.1405872728.txt.gz · Last modified: 2014/07/20 18:12 by mkucia