Disclaimer: First post on StackOverflow, so please bear with me.. I'm also 'new' to XML/markup languages, so if this is a "dumb" question, forgive me.
Question: I'm working on a project that involves marking up a series of books. What we would like to do is have divisions within our text when chapters change, when subheadings change, etc.
Now, in playing with a basic file, I've learned that div statements need other div statements to exist. (this is part of my confusion) -The entire book is in a div statement, appending it 'book' . -When I try to nest div statements within it, I get ugly red lines everywhere saying that my code is broken and wrong.
Are nested divs bad? if no, can someone please provide an example of how I might use them in TEI? Also: if anyone knows the relevant tagging for chapters (if it's simply 'chapter' or 'subheading' , or maybe something else...?)
Thank you very much for your time. -RB.
Edit: Here is a basic outline of what I am working with... (I have deleted or altered content specific to my project). - Assume my TEI header is correct. This is the text portion I am struggling with:
<text>
<body>
<div type='book'>
<pb n="1" facs="1.jp2"/>
<p>GEMSTONES AND<lb/>
MINING<lb/>
IN THE<lb/>
DISTRICT.
</p>
<!--rb several pages follow, until the first chapter I want to mark-->
<pb n='23' facs='23.jp2'/>
<div type='chapter'>
<p>Gemstones and mining<lb/>
in the<lb/>
District<lb/>
<!--rb content in this chapter continues over a few pages-->
<pb n='33' facs='33.jp2'/>
</div>
<!--rb and now the rest of my code is red and angry-->
</div>
</body>
</text>
What I would like help with, is putting divs inside of pages in my text. At present, when I try to insert smaller divs (breaking up, say, chapters) the code underlines the entire document in red since one of my divs, within the 'book' div has been closed off...