7

See subject: and if I can, my second question is, How? I tried to use the trang Java library and nothing happened :(

Jens
  • 8,423
  • 9
  • 58
  • 78
jitm
  • 2,569
  • 10
  • 40
  • 55
  • 1
    Also note [*trang* on Github](https://github.com/relaxng/jing-trang) instead of the project's older homepage. – Jens May 23 '16 at 13:43

1 Answers1

14

Trang works, try again.

The correct command line is:

java -jar trang.jar -I rnc -O xsd test.rnc test.xsd
ocodo
  • 29,401
  • 18
  • 105
  • 117
Max Toro
  • 28,282
  • 11
  • 76
  • 114
  • I used next command: java -jar trang.jar -I rnc -O xsd -i test.rnc -o test.xsd and received next error: fatal: at least two arguments are required Trang version 20081028 usage: java com.thaiopensource.relaxng.translate.Driver [-I rng|rnc|dtd|xml] [-O rng|rnc|dtd|xsd] [-i input-param] [-o output-param] inputFileOrUri ... outputFile – jitm Jun 19 '10 at 14:38
  • @jitm - the command-line arguments you used don't match the syntax as described by the error message! – Stephen C Jun 19 '10 at 14:51