Changes between Version 8 and Version 9 of TracXsdPlotMacro
- Timestamp:
- Jul 27, 2016, 5:23:15 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracXsdPlotMacro
v8 v9 1 1 [[PageOutline(2-5,Contents,pullout)]] 2 2 3 = Produce simple-mindedgraphical images of the structure of XML Schema files3 = Produce graphical images of the structure of XML Schema files 4 4 5 5 == Description 6 6 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.7 This plugin produces a graphical depiction of the data structure defined by an [wikipedia:XML_Schema_(W3C) XML Schema (XSD)] file. 8 8 9 Input files can be source files in an SVN repository, attach ements to tickets or placed in the Trac server file system.9 Input files can be source files in an SVN repository, attachments to tickets or placed in the Trac server file system. 10 10 11 11 Output is as indicated in this example: 12 12 13 [[Image(trac-hacks-example_1.1.png,width=300)]] 14 13 [[Image(trac-hacks-example_1.1.png,width=500)]] 15 14 16 15 == !Bugs/Feature Requests … … 51 50 == Configuration 52 51 53 54 52 {{{#!ini 55 53 [tracxsdplot] 56 54 file.prepath = /relative/entry/directory 57 55 file.preurl = http://example.com/entrydir 58 png-density =60056 png-density = 600 59 57 colour.element = #D3D3D3 60 58 colour.complextype = #B3B3B3 … … 62 60 colour.stroke = #2F4F4F 63 61 }}} 62 63 The `trac.ini` attributes have the following meaning: 64 64 65 65 || file.prepath || Path prefix for local files || … … 74 74 75 75 {{{#!sh 76 /path/to/plugin/xsd2svg XSDFILE --outfile=OUTFILE76 $ /path/to/plugin/xsd2svg XSDFILE --outfile=OUTFILE 77 77 }}} 78 78 … … 85 85 }}} 86 86 87 == Possible trac links for input files/resources:87 === Possible Trac links for input files/resources 88 88 89 89 ||= Trac link =||= Alternatives =||= Comment =|| 90 || wiki: ||!JustPageName || Wiki page attachment ||91 || ticket: ||!#1 || Ticket attachment ||92 || source: || browser,repos || File stored in subversion ||93 || file: |||| Local file. Path prefix read from `file.prepath` in trac.ini ||90 || wiki: || !JustPageName || Wiki page attachment || 91 || ticket: || !#1 || Ticket attachment || 92 || source: || browser,repos || File stored in Subversion || 93 || file: || || Local file. Path prefix read from `file.prepath` in trac.ini || 94 94 95 95 96 == XSD layout selectiveness control parameters: 96 === XSD layout selectiveness control parameters 97 97 98 ||= Parameter =||= Value =||= Default =|| 98 || top-element || select specific top XSD element of plot || assumes file to contain '''exactly one''' XSD root element. Otherwise the first element encountered will be plotted. ||99 || top-element || select specific top XSD element of plot || Assumes file to contain '''exactly one''' XSD root element. Otherwise the first element encountered will be plotted. || 99 100 || depth || maximum depth counted in elements || infinity || 100 || stop-list || Pipe-separated list of XSD element names where recursive descent shall stop || empty||101 || stop-list || pipe-separated list of XSD element names where recursive descent shall stop || ''empty'' || 101 102 103 === Other parameters 102 104 103 == Other parameters:104 105 ||= Parameter =||= Value =||= Default =||= Note =|| 105 || img-type || 'png' or 'svg' || svg || case INsensitive ||106 || width || width in pixel || 600 || must be absolute value ||107 || caption || Caption under image || ''none'' || ||106 || img-type || 'png' or 'svg' || svg || Case '''in'''sensitive || 107 || width || width in pixel || 600 || Must be absolute value || 108 || caption || caption under image || ''none'' || || 108 109 || label || anchor to link to || || || 109 || cache || build once or each time || True || time consumption or changing vector graphics ||110 || cache || build once or each time || True || Time consumption or changing vector graphics || 110 111 || align || left|right || nothing || || 111 112 112 113 113 == Recent Changes … … 123 123 == Credits 124 124 125 Thanks to [wiki:ursaw] for most of the macro argument parsing and trac infrastructure that is taken from PdfImagePlugin.125 Thanks to [wiki:ursaw] for most of the macro argument parsing and Trac infrastructure that is taken from PdfImagePlugin.