我有哪些内容用于XSLT
第一TEI
,你可以在这里找到http://xsltfiddle.liberty-development.net/3Nqn5Y4/7的xsl:检查,如果两个字符串是相等的,如果为true,则显示另一个字符串
在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>
我没有问题来引用正确的文件。我检查过了,它正在工作。
其实,我有两个问题:
- 的
ref
key
不工作,我认为, - 所以当我想要显示的
$value-doc2
href5
如果"$value-doc = translate($re-ana2, '#', '')
是真实的,我有以下消息:
描述:多个项目的序列不允许作为标记化的()中的第一个参数(“” 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>
综上所述:如果第二TEI
(corpus_ilimilku.xml
)<gloss>
@xml:id
=电流TEI
的<re>
@ana[2]
(在小提琴内容),然后显示属于gloss
的相同父节点的每个ref
的idno @type URI
。
我希望我的解释清楚。对不起,我缺少英语......
提前,谢谢。
正确答案在下面。 – Vanessa