Re: [gutvol-d] ANNOUNCEMENT: XML has hit the PG archives! (gutvol-d Digest, Vol

Dave, we're talking about TEI/XML. Nothing of what you said applies here (but you would be absolutely right on a HTML document, as I understand it). ;) Josh ----- Original Message ----- From: "David A. Desrosiers" <hacker@gnu-designs.com> To: "Project Gutenberg Volunteer Discussion" <gutvol-d@lists.pglaf.org> Subject: Re: [gutvol-d] ANNOUNCEMENT: XML has hit the PG archives! (gutvol-d Digest, Vol Date: Wed, 24 Aug 2005 15:49:24 -0400 (EDT)
I've learned the fear the <div> container. Let me show you why using a <div> container for "non-specific" blocks of text won't work.
<div> <head>Level 1</head> <p>Paragraph 1.</p>
<div>Block o' text.</div>
<p> Paragraph 2.</p>
</div>
Improperly nested tags will never validate. You can't have a bare string inside the <head> tag like that, and <head> isn't a child of <div>, so that won't work either. After correcting those errors, it validates fine.
The above will not validate. Once you go one deeper in a nest, you cannot come back up just one level. You have to close the whole nesting.
Nope, this is completely untrue.
The above would work if changed to:
<div> <head>Level 1</head> <p>Paragraph 1.</p>
<div>Block o' text.</div> </div>
<div>
<p> Paragraph 2.</p>
</div>
You're still producing invalid markup. Try something like this:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head><title>Level 1</title></head> <body> <p>Level 1</p> <div>
<p>Paragraph 1.</p>
<div>Block o' text.</div>
<p> Paragraph 2.</p>
</div> </body> </html>
David A. Desrosiers desrod@gnu-designs.com http://gnu-designs.com _______________________________________________ gutvol-d mailing list gutvol-d@lists.pglaf.org http://lists.pglaf.org/listinfo.cgi/gutvol-d

Dave, we're talking about TEI/XML. Nothing of what you said applies here (but you would be absolutely right on a HTML document, as I understand it). ;)
Its not even well-formed XML, and fails XML validation (as the doctype shown below shows). Perhaps the TEI/XML needs to start conforming. David A. Desrosiers desrod@gnu-designs.com http://gnu-designs.com
participants (2)
-
David A. Desrosiers
-
Joshua Hutchinson