#!/bin/sh ######################################################################## # Script to print the document type, without needing the XML document # to validate. Get the document type from the first argument to the # element, which should be either "book" or "article". # # Use it like this: # doctype file.xml # # If you know the XML file WILL VALIDATE, you may use the "doctype.xsl" # script instead. If not, use this one ######################################################################## egrep '^[[:space:]]*