【发布时间】:2023-03-19 22:38:02
【问题描述】:
我有这个 xml:
<TEI>
<text>
<body>
<div>
<pb facs="01.jpg"/>
<panel facs="#p1" characters="#Matt_Feazell">
<caption facs="#p1c1">My old pal <hi rend="italic">Matt Feazell</hi> called the other
day.</caption>
<balloon facs="#p1b1" who="#Matt_Feazell">So, Scott, what's your next project going to be now that you've
finished <q>Zot</q>?</balloon>
</panel>
</div>
</body>
</text>
</TEI>
还有这个 xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" >
<xsl:output encoding="UTF-8" method="xml" omit-xml-declaration="yes"/>
<xsl:template match="/">
<html>
<body>
<img alt="sorry" src="{/TEI/text/body/div/pb/@facs}" ></img>
<xsl:value-of select="/TEI/text/body/div/panel/balloon"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
我尝试了各种解决方案,例如不同的源、文件位置、链接方法,但找不到可靠的解决方案。拜托,任何帮助都会很棒,这个问题一直困扰着我。非常感谢您的帮助和教训。
【问题讨论】: