The action of the main program is straightforward. Each input file named on the command line is passed to the processFile() function for processing.
# - - - - - m a i n - - - - -
#-- 1 --
for inFileName in sys.argv[1:]:
#-- 1 body --
# [ if inFileName names a readable, valid DocBook XML file ->
# output files named in that file := code fragments
# designated for those files
# sys.stderr +:= error messages from processing that file,
# if any
# else ->
# sys.stderr +:= error message ]
processFile ( inFileName )
|