1#!/bin/bash
2
3# build all RelaxNG and XSD schema files
4# trang is one of the CHART core dependancies
5# It is a Java tool with a customised launcher executable
6# chartcore xml_valid --build-all
7echo Converting all RelaxNG-compact schemas to RelaxNG and XSD...
8
9PREFIX=`dirname $0`
10cd $PREFIX
11for input in `ls *.rnc`; do
12 echo Processing $input
13 trang -I rnc -O rng $input ${input%rnc}rng
14 trang -I rnc -O xsd $input ${input%rnc}xsd
15done