Electric train yard with a 
			  myriad of overhead lines and tracks on the ground. An electric train 
			  sits facing the camera in the lower left of the frame. Photo (c) José Martín.

 

Earl Hood
Senior Computer Systems Designer @ EPS Corporation

Dec 22, 2024. 1 Min read

 

Converting XML Catalogs to TR9401 Catalogs

I have been working with SGML/XML for some time now and have come across software that does not support XML Catalogs, including software that I developed.

However, this software does support TR9401 Catalogs. Instead of trying to update or modify older software, I have found it easier to write an XSLT that converts an XML Catalog into a TR9401 catalog.

You can view and download the XSLT from:

xmlcat-to-opencat.xsl

If there are any features in the XML Catalogs that are not supported in TR9401, the XSLT displays warnings but continues processing.

Although I'm unsure if anyone else would find this transformation useful, it has proven handy for me when using my old DTD parsing tools.

Additional Resources