This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
yap-6.3/packages/sgml/Test/rsre.sgml
2009-03-13 19:39:06 +00:00

19 lines
716 B
Plaintext

<!DOCTYPE text [
<!ENTITY new.page STARTTAG "page">
<!ENTITY new.line STARTTAG "line">
<!SHORTREF for.text
"&#RS;" new.line>
<!ELEMENT text O O (page+)>
<!ATTLIST text original CDATA #IMPLIED>
<!USEMAP for.text text>
<!ELEMENT page O O (line+)>
<!ELEMENT line O O (#PCDATA)>
]>
SGML does NOT add record start characters at the beginning or
record end characters at the end of entities unless they are
already there. In this document, there IS a record start
character for the first line of text and there IS a record end
character for the last line of text. The #RS character reference
should match at the beginning of each line except possibly the
first one, so we expect SEVEN (LINE) elements for this file.