3
catalog=/usr/share/sgml/docbook/dtd/xml/4.2/catalog
4
xmldcl=/usr/share/sgml/declaration/xml.dcl
7
if grep -q '^<!DOCTYPE' $1; then
8
nsgmls -s -c $catalog $xmldcl $1 2> $err
12
root=`sed -e '0,/<[a-z]/!d' $1 | sed -e '$!d' | sed -e 's/<\([a-z][a-zA-Z0-9]*\).*/\1/'`
14
<!DOCTYPE $root PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "docbookx.dtd"
15
[<!ENTITY % entities SYSTEM "entities.ent"> %entities;]>
18
nsgmls -s -D$topdir -c $catalog $xmldcl $temp 2> $err
b'\\ No newline at end of file'