4 # Read in the references, and put into an associative array
6 open FILE, "<refs" || die "Error opening refs: $!\n";
12 $defs{$_[0]}{$_[1]}++;
17 # now loop over the input RFC's.
19 foreach $file (@ARGV) {
25 # get the current reference
29 $ref = "attributes-$ref";
31 open OUTPUT, ">$ref.html" || die "Error creating $ref.html: $!\n";
34 # Print out the HTML header
37 <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
40 <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
41 <meta name="GENERATOR" content="Perl">
42 <title>$rfc Index of Attributes</title>
45 <h1>$rfc Attribute List</h1>
50 foreach $key (sort keys %{$defs{$def}}) {
51 if (substr($key,0,1) ne $letter) {
52 print OUTPUT "</UL>\n" if ($letter ne "@");
53 $letter = substr($key,0,1);
54 print OUTPUT "\n<H3>$letter</H3>\n\n";
55 print OUTPUT "<UL>\n";
58 print OUTPUT "<A HREF=\"$refs{$key}.html#$key\">$key</A><BR />\n";
62 print OUTPUT "</UL>\n";
63 print OUTPUT "</BODY>\n";