
Lee Passey wrote:
I understand that creating a file format which could be viewed without further processing was not your intention, but now that we have some evidence that suggests that it is a real possiblity is there any reason _not_ to pursue that possiblity, especially if it only requires adding three lines to the source (and making sure that all the dtd's are accessible)?
Supporting CSS styling will add another complexity layer to an already overly complex thing. A software architect has to leave things out to make the design implementable. Also, things like footnotes are impossible with CSS. So why bother?
In any case, it doesn't matter which encoding is used, so long as it is not misrepresented in the <?xml ...> declaration.
Both the TEI and the XHTML file are correct. I don't know why it doesn't work for you.
As part of my CSS experimentation, I set the display setting for the <tei-header> element to "none", because while I think the data is important, I'm not particularly interested in seeing it when I'm reading. When I did this, I thought I lost the title of the book because it only appears in the <tei-header> element. I discovered later the title was repeated in the <front> element, identified as a <head>er. As I read the TEI spec, (and I am by no means well-versed) I believe that there should also exist a <titlePage> element which should be part of the <front>, and which should contain all the information traditionally found on the title page of a book.
That is for the encoder to decide. If the title page is interesting enough to warrant a separate encoding, she will use <titlePage> etc. to mark it up. If the title page is just plain boring you can generate a standard title page with <divGen type="titlepage">. This will pull all data out of the <teiHeader> and save you the trouble. There are a lot of such shortcuts implemented like <divGen type="toc"> and <divGen type="footnotes">.
I also note that you encoded the glossary at the end of the work with <p> tags (naughty, naughty). Based on what I saw in the TEI docs I would have encoded it as follows:
<div type="glossary"> <head>Glossary</head> <list type="gloss"> <label>'Abdu'l-Bahá</label> <gloss>The "Servant of Bahá", Abbás Effendi (1844-1921), the eldest son and appointed Successor of Bahá'u'lláh, and the Centre of His Covenant.</gloss>
And it wouldn't have validated because gloss has no business inside list. -- Marcello Perathoner webmaster@gutenberg.org