for xml in urn*.xml do xsltproc fix-xsd.xsl $xml | xmllint --schema /var/www/html/xsd19139/gmd/gmd.xsd - > z.xml || break mv z.xml $xml done