【发布时间】:2018-06-08 08:14:00
【问题描述】:
我有第一个TEI,其中的内容用于XSLT,你可以在这里找到http://xsltfiddle.liberty-development.net/3Nqn5Y4/7
corpus_ilimilku.xml 中的第二个TEI 我需要在同一个XSLT 文件中使用:
<category n="1" xml:id="contend" ana="#verb.competition">
<catDesc xml:lang="en">subcategory of competition verb: contend
<lang>
<ref n="1" target="http://babelnet.org">BabelNet<idno type="URI">http://live.babelnet.org/synset?word=bn:00083498v</idno></ref>
<ref n="2" target="https://framenet2.icsi.berkeley.edu/">FrameNet<idno type="URI">https://framenet2.icsi.berkeley.edu/fnReports/data/frameIndex.xml?frame=Attaching"></idno></ref>
</lang>
</catDesc>
<category ana="#transcription" xml:lang="uga">
<gloss n="1" xml:id="ḫṣb01" target="../uga/verb.xsl#ḫṣb"/>
<gloss n="2" xml:id="mḫṣ01" cert="high" target="../uga/verb.xsl#mḫṣ"/>
</category>
</category>
引用正确的文件没有问题。我已经检查过了,它正在工作。
其实我有两个问题:
-
我认为
key的ref不起作用, - 所以当我想显示
$value-doc2的href5时,如果"$value-doc = translate($re-ana2, '#', '')为真,我有以下消息:
说明:多于一项的序列不允许作为 tokenize() 的第一个参数 (", "http://live.babelnet.org/synse...", "https://framenet2.icsi.berkeley.edu...")
目前,"$value-doc = translate($re-ana2, '#', '') 有效,因为我已经测试了几个值,结果是true 或false。查看每个<li>的最后一句话
我想显示的内容:
<h3>mḫṣ</h3><em>
mean.: </em>to figth, to destroy. Inflected forms attested:
<ul>
<li>tmtḫṣ: gram. → Gt. ind. imperf. trans, 2msg, 3fsg. <em>trans. </em>she fought -- remark(s): iterative function // with “<a href="../computation/corpus_ilimilku.xml#ktu1-3_ii_l6b_t%E1%B8%ABt%E1%B9%A3b">tḫtṣb</a>.” Occur.: <a href="">ktu1.3:ii:l5b-6a</a> -- <em>analysis: </em>suggestion of
<a href="../computation/corpus_ilimilku.xml#ktu1-3_ii_l5b_6a_int">hermeneutics;</a> taxo., subcat. of competition v. “<a href="../computation/corpus_ilimilku.xml#m%E1%B8%AB%E1%B9%A301">contend</a>.”
<!-- DATA THAT I CANNOT DISPLAY : --> <a href="http://live.babelnet.org/synset?word=bn:00083498v">BabelNet</a>, <a href="https://framenet2.icsi.berkeley.edu/fnReports/data/frameIndex.xml?frame=Attaching">Framework</a>
</li>
<li>tmḫṣ: gram. → D. ind. perf. trans, 2msg, 3fsg. <em>trans. </em>she destroyed -- remark(s):
Occur.: <a href="">ktu1.3:ii:l7</a> -- <em>analysis: </em>suggestion of <a href="../computation/corpus_ilimilku.xml#ktu1-3_ii_l7_int">hermeneutics;</a> taxo., subcat. of emotion's v. as a concept of “<a href="../computation/corpus_ilimilku.xml#m%E1%B8%AB%E1%B9%A302">humiliation</a>.”
<!-- DATA THAT I CANNOT DISPLAY : --> <a href="http://live.babelnet.org/synset?word=bn:00083498v">BabelNet</a>, <a href="https://framenet2.icsi.berkeley.edu/fnReports/data/frameIndex.xml?frame=Attaching">Framework</a>
</li>
</ul>
总结一下:如果@xml:id of 第二个TEI (corpus_ilimilku.xml) = @ana[2] of <re> of current TEI (in Fiddle content),则显示idno @type URI of每个ref 属于gloss 的同一父节点。
我希望我的解释清楚。对不起,我的英语不好...
提前,谢谢。
【问题讨论】:
-
正确答案如下。