🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text.sgml
Article #164

Re: Record boundaries

#164
From: Erik Naggum
Date: Fri, 28 Aug 1992 22:09
47 lines
2632 bytes
Alasdair Grant <ag129@cl.cam.ac.uk> writes:
|
|   Is it portable to use RE in short references?

Yes.

|   Eric van H.'s book says "no document or part of a document is deemed
|   to start with an RS or end with an RE unless it really does."  Does
|   this mean that if I ship the document to a record-based system like
|   MVS, I would have to reserve a character, FUNCTION RE it, and insert
|   it at the end of every line, if I was using one of the short
|   reference delimiters that contain it (e.g. blank line)?

No.

To quote from the standard in the last note in clause 7.6.1 (324:12 to
those who have the one and only SGML Handbook):

	No entity, including the SGML document entity and external
	entities, is deemed to start with an RS or end with an RE unless
	it really does.

It's the entity manager's job to ensure that the parser sees RS's and
RE's where the file system has record boundaries, or where the file
system has line terminating control codes, or whatever.  An RE is an RE
whether it originated as the end of a record on an MVS system, or its
character number occurred in the document, or the entity manager saw
something else and interpreted it as a record end.

For instance, on MVS a record would produce an RS, the record content,
and an RE.  On DEC operating systems, a line is terminated by CRLF,
where the CR is interpreted as RE for the current record, and the LF as
RS for the next (unless there is none).  On Unix systems, a line is
terminated by LF, which is interpreted as the RE for the current record
and as RS for the next (unless there is none), so it would produce two
characters to the parser from one character in the source entity.  On
Macintoshes, the same is true for CR.  MS DOS is a cheap clone of CP/M,
which was a reasonable clone of early DEC operating systems, so the CRLF
line terminator applies there, too.

Best regards,
</Erik>
--
Erik Naggum             |  ISO  8879 SGML     |      +47 295 0313
                        |  ISO 10744 HyTime   |
<erik@naggum.no>        |  ISO 10646 UCS      |      Memento, terrigena.
<enag@ifi.uio.no>       |  ISO  9899 C        |      Memento, vita brevis.
Technical Details
Message-ID: <23322C@erik.naggum.no>
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!stl!uknet!mcsun!sunic!ugle.unit.no!nuug!ifi.uio.no!SGML
References: <1992Aug28.175508.8247@cl.cam.ac.uk>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!dtix!darwin.sura.net!convex!news.utdallas.edu!corpgate!bnrgate!stl!uknet!mcsun!sunic!ugle.unit.no!nuug!ifi.uio.no!SGML
From: SGML@ifi.uio.no (Erik Naggum)
Newsgroups: comp.text.sgml
Subject: Re: Record boundaries
Message-ID: <23322C@erik.naggum.no>
Date: 28 Aug 92 22:09:43 GMT
References: <1992Aug28.175508.8247@cl.cam.ac.uk>
Organization: Department of Informatics, University of Oslo, Norway
Lines: 42