Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xsdvi

Build Status Build Status Build Status

Fork of XsdVi tool - Java application serves to transform W3C XML Schema instances into interactive diagrams in SVG format.

This repository is a fork of the original XsdVi source code.

See original XsdVi SourceForge project page (https://sourceforge.net/projects/xsdvi/) and the XsdVi website (https://sourceforge.net/projects/xsdvi/) for more information on XsdVi.

Installing Build Tools

You will need the maven build tool and make.

Usage

java -jar target/xsdvi.jar <input1.xsd> [<input2.xsd> [<input3.xsd> ...]] [-rootNodeName <name>] [-oneNodeOnly] [-outputPath <arg>]

e.g.: to render SVG for entire XSD with root element UnitsML:

java -jar target/xsdvi-1.3.jar UnitsML-v1.3-csd04.xsd -rootNodeName UnitsML

to render SVG for one element Quantity:

java -jar target/xsdvi-1.3.jar UnitsML-v1.3-csd04.xsd -rootNodeName Quantity -oneNodeOnly

to render separate SVGs for each element:

java -jar target/xsdvi-1.3.jar UnitsML-v1.3-csd04.xsd -rootNodeName all -oneNodeOnly -outputPath images/SVG

Building the package

make all

Releasing a new version

Update version in pom.xml, e.g.:

<groupId>xsdvi</groupId>
<artifactId>xsdvi</artifactId>
<version>1.3</version>
<name>XsdVi tool</name>

Build the package using instructions above, the package will be created at: target/xsdvi-{version}.jar

Tag the same version in Git:

git tag v1.3
git push origin v1.3

Then the corresponding GitHub release will be automatically created at: https://github.com/metanorma/xsdvi/releases

Testing

The testing environment utilizes these tools:

  • make

Running the tests:

make test

About

Fork of XsdVi tool - Java application serves to transform W3C XML Schema instances into interactive diagrams in SVG format.

Resources

Contributing

Stars

13 stars

Watchers

8 watching

Forks

Releases

Packages

Used by

Contributors

Languages