<!DOCTYPE STD1 PUBLIC "-//AbiCo//DTD STD1//EN" [

<!ENTITY loc "http://www.cloud9.net/~bradmcc/sgml/test1.sgm" >
<!-- gsd.pl manipulates the following line -->
<!ENTITY ver "09 August 2002 (v01.75; gsd.pl v1.9 99.08.28 @ 22:04:47 EDT)" >
<!ENTITY     warning   SYSTEM "warning.inc" >
  
<?STYLESPEC  "Style1"  "std1_A.ssh" >
<?NAVIGATOR  "Nav1"    "Std1_A.nav" >
<!ENTITY     themill   SYSTEM "../jpg/broch.jpg" NDATA JPEG >
<!ENTITY     wball     SYSTEM "../jpg/AlbertVolk.jpg" NDATA JPEG >
<!ENTITY     onea      SYSTEM "../jpg/onea.jpg" NDATA JPEG >
<!ENTITY     mn        SYSTEM "../jpg/nijhoff.jpg" NDATA JPEG >
<!ENTITY     jethra    SYSTEM "../jpg/jethra2.jpg" NDATA JPEG >
<!ENTITY     abiko1    SYSTEM "../jpg/AbiFloor.jpg" NDATA JPEG >
<!ENTITY     abiko2    SYSTEM "../jpg/AbiFace3.jpg" NDATA JPEG >
<!ENTITY     abiko3    SYSTEM "../jpg/abi2.jpg" NDATA JPEG >
<!ENTITY     peking    SYSTEM "../jpg/Peking2.jpg" NDATA JPEG >
<!ENTITY     tycho     SYSTEM "../gif/uraniborg.gif" NDATA GIF >
<!ENTITY     think     SYSTEM "../think1.gif" NDATA GIF >

]>

<std1>
<title id="title.top">Test document #1, with a brief <em ref="Essay">essay</em> and a <em ref="Pictures">picture gallery</em></title>

<sec>
<title>Topography</title>
<p>
This page is part of a set of three
linked pages, the other two being: <xlink tgt="test2.sgm">test2.sgm</xlink>,
and <xlink tgt="test3.sgm">test3.sgm</xlink>.  This page and
test2.sgm contain links to images.  Test3.sgm contains
lists of some of my favorite books, art, etc.</p>
</sec>

&warning;

<sec>
<title>About this document</title>
<p>This is the <name id="about.a">first paragraph in the Second Section of this
test (which is also a te<em>x</em>t...) document....</p>  
<p>You can examine the DTD for this 
document, in a separate browser 
window, by clicking the following icon: <subdoc file="std1.dtd"><![ CDATA [

<!NOTATION GIF        SYSTEM >
<!NOTATION JPEG       SYSTEM >
<?ATTLINK  xlink tgt  URI >

<!element  std1       - - (title, (sec+), tail) >
<!entity   dtd.id      "std1 (v2.1)" >
<!ENTITY   tail       SYSTEM "stdtail.inc">

<!element  title      - - (#PCDATA) +(em) >
<!attlist  title      ID   ID     #IMPLIED > 
<!element  sec        - - (title, ((p|l)+)) >
<!element  tail       - - (disclaimer, address) >
<!element  address    - - (loc, author, email, ver) >

<!element  disclaimer - - (#PCDATA) >
<!element (
           loc | author | email | ver
            )         - - (#PCDATA) >
      
<!element  l          - - (li+) >
<!element (
           p | li 
            )         - - (#PCDATA) +(em | name | link | xlink | tblblk | 
                                      quote | subdoc| imgblk) >

<!element  tblblk     - - (table) >
<!element  table      - - (r+) >
<!attlist  table      desc CDATA  #REQUIRED >
<!element  r          - - (c+) >
<!element  c          - - (#PCDATA) >
<!attlist  c          em   CDATA  #IMPLIED >

<!element  xlink      - - (#PCDATA) >
<!attlist  xlink      tgt  CDATA  #REQUIRED >

<!element  imgblk     - - (ib) >
<!element  ib         - - (#PCDATA) +(img|p) >     

<!element  em         - - (#PCDATA) >
<!attlist  em         REF  IDREFS #IMPLIED 
                      ID   ID     #IMPLIED >

<!element  subdoc     - - (#PCDATA) >
<!attlist  subdoc     FILE CDATA #IMPLIED  -- for gsd.pl -->

<!element  quote      - - (#PCDATA) +(em | name | link) >
<!attlist  quote      ID   ID     #IMPLIED
                      SRC  CDATA  #IMPLIED >

<!element (
           name | link | img
            )         - O EMPTY >
<!attlist  name       ID   ID     #REQUIRED >
<!attlist  link       REF  IDREFS #REQUIRED >
<!attlist  img        name ENTITY #REQUIRED >
]]></subdoc>.  There is also an 
auxiliary file<subdoc file="stdtail.inc"><![ CDATA [

<tail>

<disclaimer>
This SGML document uses my &dtd.id; DTD, and
includes stdtail.inc (ver 1.4). It is
presumed that the document has passed a verifying nsgmlsu parse, 
with no errors or warnings.
</disclaimer>

<address>
<loc>&loc;</loc>
<author>Brad McCormick, Ed.D.</author>
<email>bradmcc@cloud9.net</email>
<ver>&ver;</ver>
</address>

</tail>
]]></subdoc> which contains some "boilerplate" for documents 
using this DTD. Finally, the Perl 
script, gsd.pl<subdoc file="gsd.pl"><![ CDATA [

#invocation: perl gsd.pl file_with_subdocs
#restriction: the start and end tags for a subdoc
#    must be on different lines, and the end tag
#    for one subdoc cannot be on the same line as the
#    start tag for another subdoc. 

$version = "1.9";
@t=localtime(time());
$now=sprintf("%02d.%02d.%02d @ %02d:%02d:%02d %s",
    $t[5],$t[4]+1,$t[3],$t[2],$t[1],$t[0],($t[8]==0?"EST":"EDT"));

print "\n";
if (!open(OLD, $ARGV[0])) {          # open existing file with subdoc tags
    print "  invocation: perl gsd file_with_subdocs\n".
          "  open for \"$ARGV[0]\" failed\n\n";
}
print "  Processing file: $ARGV[0]\n";

$newfile = "x_$ARGV[0]";       
open(NEW, "> $newfile");             # open updated version of file

while (($linein = <OLD>) ne "") {    # read input file
    $linein =~ s/(<!ENTITY ver[^;]+; gsd\.pl) [^)]+/$1 v$version $now/i;
                                     # set date and version stamp of gsd.pl
                                     # processing
    print NEW $linein;               # copy line from old file to new
    if ($linein =~ /<subdoc file="([^"]+)"><!\[ CDATA \[\s*$/i) {
                                     # look for beginning of a subdoc block
        $file = $1;                  # remember name of file to be merged
        print "   Going to merge: $file\n";
        $OK = 0;
        while (($linein = <OLD>) ne "") {
            if ($linein =~ /^(..)><\/subdoc>/i && $1 eq "]]") {
                                     # look for end of subdoc block, flushing
                                     # previous version of text of file
                                     # to be merged
                $OK = 1;
                last;
            }
        }
        if ($OK != 1) {
            print "  Failed to find block end delimiter\n\n";
            close(OLD);
            close(NEW);
            exit (0);
        }
        if (!open(M, $file)) {       # open file to be merged 
            print "  Open failed for: $file\n\n".
            close(OLD);
            close(NEW);
            exit(0);
        }
        print NEW "\n";
        while (($m_in = <M>) ne "") {# copy text of subdoc file into new file
            print NEW $m_in;
        }
        close(M);
        print NEW "\n$linein";
    }
}
close(NEW);
close(OLD);
@cmd = ("copy", $newfile, $ARGV[0]); 
$retv = system(@cmd);                # replace old version of file with subdocs
if ($retv == 0) {
    print "\n  $newfile successfuly copied over $ARGV[0]\n".
            "  gsd.pl v$version normal EOJ: $now.\n\n";
} else {
    print "\nERROR: copy failed for $newfile (rc=$retv)\n\n";
}

]]></subdoc>, merges the 
text of the current versions of std1.dtd, stdtail.inc and
gsd.pl itself into this document as "black boxes" or quotations (<em>not</em>
as parsable document content!) to make these files
conveniently available for you to study.</p>
</sec>

<sec>
<title>Other places to go in this SGML page web</title>
<l>
<li>Go to <xlink tgt="test2.sgm">test2.sgm</xlink>, to
see another set of images, including examples of my
Envelope Art. (There are additional links to test2.sgm at
2 other places<link ref="llt.gt2 llt2.gt2"> in this file).
</li>
<li>Go to <xlink tgt="test3.sgm">test3.sgm</xlink>,
for examples of SGML tables, which I use there to list some of my favorite books,
movies, and other things.
</li>
</l>
</sec>

<sec>
<title>Some code to test intra- and inter-document linking, Etc.</title>
<p>This is the first paragraph in the fourth section of this
test (which is also a te<em id="llt.x">x</em>t...) document. In this
sentence, we shall test some <em id="llt.l" ref="title.top">links</em>,
both to<link ref="about.a"> and from<name id="llt.f">.
The first link in the preceding
sentence links to this document's title.  The second
link (the arrow after "to") links to near the top of
the first paragraph in the Second Section.  The final
link target is linked to from the "link to" link near the
end of the Seventh Section. The "link to" in the Seventh Section also
links to the link target in the word "text" in the first
sentence of this paragraph.
</p>
<p>And, <name id="llt.gt2">last but not least, here is a link to
another document: <xlink tgt="test2.sgm">test2.sgm</xlink> (fear
not, that document has a link back to this document, so you won't get
lost).
</p>
</sec>

<sec>
<title id="Essay">Substantive content (A brief essay)</title>
<p>The reader may suspect
that the author has an interest in reflexive phenomena. From
the technical content of this document, it may not be clear, but
my interest is <em>not</em> in
Escher-ish perceptual tricks on sheets of paper, but in self-reflective -- preferably
<em>socially</em> self-reflective -- patterns of social
interaction, in which as Marx said, men make their
lives on the basis of conditions they have not made.
</p>
<p>
Thus I find The Tower of Babel, Rabelais' Abbey of Theleme, Tycho
Brahe's Uraniborg<imgblk><ib>
    <img name=tycho>
</ib></imgblk>, and revolutionaries, such as Thomas Jefferson, interesting.
I consider Edmund Husserl's "The Crisis of European Sciences and Transcendental
Phenomenology" (including his Vienna Lecture of 1935) a foundational and guiding text....
I honor my undergraduate teacher, John Wild, who emphasized the 
importance of: <quote src="Existence and the World of Freedom">openness to otherness</quote>, in all the phenomena of
life.  I am currently (30 Jun 97) reading Christopher
Alexander's books on the role of pattern languages in the
constitution and unfolding of social life, which resonate with
Suzanne Langer's emphasis on cultivating the <quote src="Philosophy in a New Key">associational
auras</quote> of the ordinary things of daily life.</p>
<p> 
I am interested to develop and participate in the 
cultivation of forms of life that endeavor
to be self-accountable, self-grounding,
self-improving..., and which thematically aim to contibute to enhancing
the quality of life for all persons, i.e.:
<quote src="Medieval morality play">Everyman</quote>.  All such
efforts begin in and ever again seek to re-new their focus and
their always trepidant substance, in dialog.
</p>
<p><quote src="1 Thes. v.21; text of William Ellery Channing's Baltimore Sermon of 1819, defining American Unitarianism">Prove
all things; hold fast that which is good</quote></p>
</sec>

<sec>
<title id="Pictures">A picture gallery</title>
<p>You can click on the icons associated with the following descriptions to 
see selected images from my WEB site.
</p>
<l>
<li>Hermann Broch's bookplate (from
    the Yale University Beinecke Library Broch 
    archive)<imgblk><ib>
    <img name=themill>
</ib></imgblk>.</li>
<li>The tombstone of a building demolition contractor (in the shape of a
wrecking ball, but looks like an architectural fantasy from the
one of the French Enlightenment architects Boullee or 
LeDoux)<imgblk><ib>
    <img name=wball>
    <p>Albert Volk's grave site, 
    Valhalla, New York, USA.</p>
</ib></imgblk>.</li>
<li>An architectural design project I did in the Harvard Career Discovery
Program, July 1981. Task was to design a building to house a
single rare book. My design involved a raised, air-conditioned
"cube", situated atop the rubble of a burnt-out
bulding, such as would have been left behind by General Sherman
on his march through Georgia in the American Civil War.  The single window
in the building faced West (toward the chimney...).  The theme of the
design was the decline of Western culture in our time<imgblk><ib>
    <img name=onea>
</ib></imgblk>.</li>
<li>My 2 Maine Coon cats, Abiko<imgblk><ib>
    <img name=abiko2>
</ib></imgblk><imgblk><ib>
    <img name=abiko1>
</ib></imgblk><imgblk><ib>
    <img name=abiko3>
</ib></imgblk>, and
Jethra<imgblk><ib>
    <img name=jethra>
</ib></imgblk>.</li>
<li>Martinus Nijhoff's <em>old</em> publisher's device ("colophon")<imgblk><ib>
    <img name=mn>
</ib></imgblk>. One of the bases of my thinking is Husserlean Phenomenology;
Martinus Nijhoff published many phenomenological texts (such as 
Husserl's "Cartesian Meditations" and Alfred Schutz's Collected Papers...).  I
am also fond of this design, both for its simplicity, and for its simple
message of hope.
</li>
<li>A picture<imgblk><ib>
    <img name=peking>
</ib></imgblk> taken, in 1997, with my Olympus D-300L digital
camera, of a picture I took, in 1984, with a 35mm camera, 
of a 19th Century picture of "The Forbidden City" (Peking). (Original
in the collection of the Museum of Modern Art)
</li>
</l>
</sec>

<sec>
<title>Some more code to test intra- and inter-document linking, Etc.</title>
<p>Testing SGML's
hyperlink capabilities:
We will here <em ref="llt.x llt.l llt.f">link to</em> the <em>x</em> in the
Fourth Section and also the "links" link, and the <em>from</em> there....  It seems
to me that one of the main things missing from HTML is a 
multi-link capability, i.e., the ability to invoke a menu
of URLs to go to, in addition to going directly to one
URL; perhaps the syntax could be as simple as <![ CDATA [

    blah, blah... <a href="URL1 URL2... URLn">Where</a>
    do you think you might want to go now?

]]></p>
<p><name id="llt2.gt2">Finally, here is yet another link to
that other document: <xlink tgt="test2.sgm">test2.sgm</xlink> (fear
not, that document has a link back to this document, so you won't get
lost).
</p>
</sec>

<sec>
<title>Afterwords</title>
<p>Thank you for visiting
my SGML sample WEB page(s).  I <em>will</em> appreciate any comments and/or suggestions you
may wish to e-mail to me, at: bradmcc@cloud9.net. 
</p>
</sec>

&tail;
</std1>