
ALl you need is this: <div id="ch1" type="chapter" n="1"> <head>CONSULTATION OF DEVILS, AND BIRTH OF MERLIN.</head> The "rendering agent" can then, if desired, use the type and n attributes to generate the additional "Chapter 1" heading. Steve Scott Lawton wrote:
I'd like to address a different issue raised by Brad's example. It may even be a typo of sorts or just a quick-and-dirty sample that's not representative -- but I've seen it elsewhere and think it should be covered in docs and perhaps verification suites.
CHAPTER I . CONSULTATION OF DEVILS, AND BIRTH OF MERLIN.
<div n="1" type="chapter"> <head type="title">The Romance of Merlin.</head> <head type="section title">CHAPTER I</head> <head type="sybtitle">CONSULTATION OF DEVILS, AND BIRTH OF MERLIN.</head>
Using the plain meaning of the terms (rather than any special TEI meaning), it's clear that "CONSULTATION..." is the chapter title. In this particular book, the chapter number appears on the previous line, as a roman numeral, preceeded by the word "CHAPTER" in all caps. That's worth recording so that we can reproduce the original, but I don't think the above is the best way to do it.
I'm going to suggest some alternatives that seem more logical; perhaps TEI experts can "translate" these into valid TEI (or suggest extensions that are TEI-like).
First, let's take a simpler case; a chapter that starts with just the bare title:
CONSULTATION OF DEVILS, AND BIRTH OF MERLIN.
I think the markup here can be very simple:
<div n="1" type="chapter"> <head>CONSULTATION OF DEVILS, AND BIRTH OF MERLIN.</head>
I don't think any TYPE attribute is required; that's clear from context.
Now, let's add "CHAPTER I". It's sort of a label that precedes the actual chapter title (much like "Figure" or such for certain illustrations); that gives us:
<div n="1" type="chapter"> <head type="label">CHAPTER I</head> <head>CONSULTATION OF DEVILS, AND BIRTH OF MERLIN.</head>
NOTE: when automatically extracting chapter titles, it's important to get the first unadorned <head>, i.e. skip <head type="label">. And, AFAIK, no "index" tag is required.
Since the original example is the first chapter, it has an additional (and common) complication: the book title appears first. Well, that description suggests:
<div n="1" type="chapter"> <head type="book">The Romance of Merlin.</head> <head type="label">CHAPTER I</head> <head>CONSULTATION OF DEVILS, AND BIRTH OF MERLIN.</head>
Thoughts?
-- Stephen Thomas, Senior Systems Analyst, Adelaide University Library ADELAIDE UNIVERSITY SA 5005 AUSTRALIA Tel: +61 8 8303 5190 Fax: +61 8 8303 4369 Email: stephen.thomas@adelaide.edu.au URL: http://staff.library.adelaide.edu.au/~sthomas/