免责声明:StackOverflow 上的第一篇文章,请多多包涵。我也是 XML/标记语言的“新手”,所以如果这是一个“愚蠢”的问题,请原谅我。
问题:我正在从事一个涉及标记一系列书籍的项目。我们想要做的是当章节改变、副标题改变等时在我们的文本中进行划分。
现在,在使用基本文件时,我了解到 div 语句需要其他 div 语句才能存在。(这是我困惑的一部分)-整本书都在一个 div 语句中,并附加了 'book' 。- 当我尝试在其中嵌套 div 语句时,到处都是丑陋的红线,说我的代码损坏和错误。
嵌套的div不好吗?如果没有,有人可以提供一个我如何在 TEI 中使用它们的例子吗?另外:如果有人知道章节的相关标签(如果它只是 'chapter' 或 'subheading' ,或者其他什么......?)
非常感谢您的宝贵时间。-RB。
编辑:这是我正在使用的基本大纲......(我已经删除或更改了特定于我的项目的内容)。- 假设我的 TEI 标头是正确的。这是我正在努力解决的文本部分:
<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>
我想要帮助的是将 div 放在我的文本中的页面内。目前,当我尝试插入较小的 div(例如,分解章节)时,代码将整个文档下划线为红色,因为我的一个 div 中的“书”div 已被关闭......