TEI关键设备,双端点连接;如何处理 XSL 生成 HTML
我必须将以下 XML 结构处理
<p>[1] Intencio <emph rend="italic">nostra</emph>
<anchor xml:id="AJH-L.1.1"/>de<anchor xml:id="AJH-L.1.2"/> some more like this..
</p>
<app from="#AJH-L.1.1" to="#AJH-L.1.2">
<rdg wit="#V">in</rdg>
</app>
为:
<div>[1] Intencio <span class='italic'>nostra</span>
de<a href='AJH-L.1.1'>1</a> and so on..
</div>
<div class='appEntry'>
<span class='rdg'>in</span>
</div>
而 1 是上标。
我构建实际的设备没有问题,但构建脚注没有问题,因为有关相关锚点的信息来自外部设备元素。
除此之外,我必须提到,可以同时有一个从anchor-1 到anchor-4 的附加应用程序元素。
我在这里看到了一个关于如何在此类伪重叠元素之间选择文本的问题,它对我帮助很大。但我找不到这个问题的任何解决方案。
TEI 中一定有关于这种标准方法的解决方案,但我找不到它,如果有人有任何建议,我会非常高兴。
预先非常感谢, 蒂莫
i have to process the follwing XML structure:
<p>[1] Intencio <emph rend="italic">nostra</emph>
<anchor xml:id="AJH-L.1.1"/>de<anchor xml:id="AJH-L.1.2"/> some more like this..
</p>
<app from="#AJH-L.1.1" to="#AJH-L.1.2">
<rdg wit="#V">in</rdg>
</app>
into something like:
<div>[1] Intencio <span class='italic'>nostra</span>
de<a href='AJH-L.1.1'>1</a> and so on..
</div>
<div class='appEntry'>
<span class='rdg'>in</span>
</div>
Whereas the 1 is meant to be superscript.
I have no problem building the actual apparat but on building the footnotes, because the Information about the relevant anchors comes from the external apparat-elements.
Aside i have to mention that there can be an additional app-Element from anchor-1 to anchor-4 at the same time.
I have seen a question on how to choose the text between such pseudo-overlapping elements here and it helped me a lot. But i cant find any solutions for this problem.
There must be a solution on such a standard method in TEI but i cant find it and i would be very happy, if anyone would have any suggestions.
Many thanks in advance,
Timo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是一个更复杂的 XML 示例,其中也包括重叠问题。
到目前为止我的 XSLT 模板:
结果输出应如下所示:
除了混乱的表之外,这似乎工作正常。一旦我有了正确的开始,这并不是想象中的巫术。
我希望,我可以具体说明我的问题并给出一个很好的答案。
你觉得怎么样?
问候,
蒂莫
So here is a more complex example of the XML which includes the overlap problem as well.
My XSLT Templates so far:
And the resulting Output should look like the following:
Except for the chaotic table this seems to work fine. It wasn't that voodoo as is thought of, once i had made the right start.
I hope, i could specify my question and gave a good answer, too.
What du you think?
greetings,
Timo