Changes between Version 8 and Version 9 of TracXsdPlotMacro


Ignore:
Timestamp:
Jul 27, 2016, 5:23:15 PM (8 years ago)
Author:
figaro
Comment:

Cosmetic changes

Legend:

Unmodified
Added
Removed
Modified
  • TracXsdPlotMacro

    v8 v9  
    11[[PageOutline(2-5,Contents,pullout)]]
    22
    3 = Produce simple-minded graphical images of the structure of XML Schema files
     3= Produce graphical images of the structure of XML Schema files
    44
    55== Description
    66
    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.
     7This plugin produces a graphical depiction of the data structure defined by an [wikipedia:XML_Schema_(W3C) XML Schema (XSD)] file.
    88
    9 Input files can be source files in an SVN repository, attachements to tickets or placed in the Trac server file system.
     9Input files can be source files in an SVN repository, attachments to tickets or placed in the Trac server file system.
    1010
    1111Output is as indicated in this example:
    1212
    13 [[Image(trac-hacks-example_1.1.png,width=300)]]
    14 
     13[[Image(trac-hacks-example_1.1.png,width=500)]]
    1514
    1615== !Bugs/Feature Requests
     
    5150== Configuration
    5251
    53  
    5452{{{#!ini
    5553[tracxsdplot]
    5654file.prepath = /relative/entry/directory
    5755file.preurl = http://example.com/entrydir
    58 png-density=600
     56png-density = 600
    5957colour.element = #D3D3D3
    6058colour.complextype = #B3B3B3
     
    6260colour.stroke = #2F4F4F
    6361}}}
     62
     63The `trac.ini` attributes have the following meaning:
    6464
    6565|| file.prepath || Path prefix for local files ||
     
    7474
    7575{{{#!sh
    76 /path/to/plugin/xsd2svg XSDFILE --outfile=OUTFILE
     76$ /path/to/plugin/xsd2svg XSDFILE --outfile=OUTFILE
    7777}}}
    7878
     
    8585}}}
    8686
    87 == Possible trac links for input files/resources:
     87=== Possible Trac links for input files/resources
    8888
    8989||= 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  ||
    9494
    9595
    96 == XSD layout selectiveness control parameters:
     96=== XSD layout selectiveness control parameters
     97
    9798||= 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. ||
    99100|| 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'' ||
    101102
     103=== Other parameters
    102104
    103 == Other parameters:
    104105||= 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''  ||       ||
    108109|| 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  ||
    110111|| align       || left|right              || nothing   ||       ||
    111 
    112112
    113113== Recent Changes
     
    123123== Credits
    124124
    125 Thanks to [wiki:ursaw] for most of the macro argument parsing and trac infrastructure that is taken from PdfImagePlugin.
     125Thanks to [wiki:ursaw] for most of the macro argument parsing and Trac infrastructure that is taken from PdfImagePlugin.