for file in \ ./include/datacite-relatedIdentifierType-v2.xsd \ ./include/datacite-titleType-v2.xsd \ ./include/datacite-contributorType-v2.xsd \ ./include/datacite-resourceType-v2.xsd \ ./include/datacite-dateType-v2.xsd \ ./include/datacite-relationType-v2.xsd \ ./include/datacite-descriptionType-v2.xsd \ ./metadata.xsd do echo $file bn=`dirname $file`/`basename $file .xsd` xsltproc $HOME/lib/XSDtoRNG.xsl $file > z && mv z $bn.rng done