gpt4 book ai didi

html - xml(TEI P5)可视化方法

转载 作者:行者123 更新时间:2023-11-28 16:39:00 25 4
gpt4 key购买 nike

根据 TEI P5 指南,我已经用 xml 编码了一本书,我正试图在 html 页面中将其可视化。真正的目的是可视化编码文本及其所有格式标签 TEI P5 指南(文本格式、内部引用等)。所以,最大的问题是我们如何正确地做到这一点?

{郑重声明:我已经尝试(并且仍在尝试)将整个 xml 文本“扔”到 html 正文中,并在并行的 css 样式表中编辑可视化,我将其链接到 html <style> .但是,似乎有些不太对...}

有什么想法吗?任何例子??

这里是一个 xml 示例:

    <?xml version="1.0" ?>
<TEI version="5.0" xmlns="http://www.tei-c.org/ns/1.0">
<!--here exists the teiHeader-->
<text>
<front>
<div type="preface">
<head rend="align(center)">
<hi rend="bold">title</hi></head>
<p>Here is the prologue.Here is the prologue.</p>
<p>And second para of prologue.</p>
<p><ref target="#memories">Here is first reference to an xml:id, which have created to the teiHeader.</ref> Some more prologue. <ref target="#modernNovel">Here is the second reference to an xml:id, which have created to the teiHeader.</ref> and more prologue.</p>
<closer>
<salute rend="align(right)">Dear readers</salute>
<signed rend="align(right)">signature</signed>
</closer>
</div>
</front>
<body>
<ab type="title">
<title rend="align(center)" type="main">
TITLE
</title>
<lb/>
<title rend="align(center)" type="desc">
Secondary title
</title>
</ab>
<div n="1" type="chapter">
<head rend="align(center)">
<hi rend="bold">Chapter 1 <lb/>name of the chapter.</hi>
</head>
<p>Here is the real text, and text, and more text. Again the text, and text, and more text.Again the text, and text, and more text.An finally the name <placeName xml:id="London"> <hi rend="bold">London</hi></placeName>, appears here.</p>
<p>Here is the real text, and text, and more text. Again the text, and text, and more text.Again the text, and text, and more text.An the name <ref target="London"> <hi rend="bold">London</hi></ref>, repeat itself.</p>
</div>
</body>

最佳答案

您对 @rend 属性的使用表明您正在尝试使用它来提供 CSS 样式属性。如果是这样,您可能会发现使用 @style 或 @rendition 属性更容易,因为它们就是为此目的而设计的。但是请记住,所有这三个属性都是为了描述源的再现。 TEI(目前)没有提供指定应如何处理文档的特定组件的方法:这被认为超出了原始元素的范围。但是,在为 TEI 元素定义“处理模型”方面正在做一些工作,这应该很快就会出现在指南中。例如,参见 TEI Simple 元素。

关于html - xml(TEI P5)可视化方法,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34017183/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com