Changes between Version 3 and Version 4 of TracXsdPlotMacro
- Timestamp:
- Aug 10, 2015, 9:53:34 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracXsdPlotMacro
v3 v4 3 3 = Produce simple-minded graphical images of the structure of XML Schema files 4 4 5 == Description 5 6 6 == Description == 7 8 Produce a graphical depiction of the data structure defined by an XML Schema (XSD) file. 7 This plugin produces a graphical depiction of the data structure defined by an [https://en.wikipedia.org/wiki/XML_Schema_(W3C) XML Schema (XSD)] file. 9 8 10 9 Input files can be source files in an SVN repository, attachements to tickets or placed in the Trac server file system. … … 14 13 [[Image(trac-hacks-example.png,width=300)]] 15 14 16 === Assumptions ===15 === Assumptions 17 16 18 17 The current version assumes that an XSD file contains exactly one `ComplexType` definition at top level. … … 40 39 General instructions on installing Trac plugins can be found on the [TracPlugins#InstallingaTracplugin TracPlugins] page. 41 40 42 `ImageMagick` must be installed 43 `ElementTree` must be installed for XSD parsing 41 Requirements: 42 * `ImageMagick` must be installed. 43 * `ElementTree` must be installed for XSD parsing. 44 44 45 So far only tested with Trac 1.0.6 on linux. Older Trac versions cannot access specific source file revisions. 45 Enable the plugin as follows in your `trac.ini` file: 46 46 47 === Configuration === 48 49 Enable the plugin by 50 51 {{{ 47 {{{#!ini 48 [components] 52 49 tracxsdplot.* = enabled 53 50 }}} 54 51 55 To access and convert files in the server's file system, set these in trac.ini: 52 Tested with Trac 1.0.6 on Linux. Older Trac versions cannot access specific source file revisions. 53 54 == Configuration 55 56 To access and convert files in the server's file system, set these in `trac.ini`: 56 57 57 {{{ 58 {{{#!ini 58 59 [tracxsdplot] 59 60 file.prepath = /relative/entry/directory 60 file.preurl 61 file.preurl = http://example.com/entrydir 61 62 }}} 62 63 63 64 The plugin contains functionality that allows command-line usage as well: 64 65 65 {{{ 66 {{{#!sh 66 67 /path/to/plugin/xsd2svg XSDFILE --outfile=OUTFILE 67 68 }}} 68 69 69 70 70 == Recent Changes … … 80 80 == Credits 81 81 82 Thanks to [wiki:ursaw] for most of the macro argument parsing and trac infrastructure that is stolen from PdfImagePlugin82 Thanks to [wiki:ursaw] for most of the macro argument parsing and trac infrastructure that is taken from PdfImagePlugin.