I have a first TEI
which content is used for XSLT
that you can find here http://xsltfiddle.liberty-development.net/3Nqn5Y4/7
A second TEI
in corpus_ilimilku.xml
which I need to use in the same XSLT
file:
<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>
I don't have a problem to refer to the right file. I have checked, and it's working.
In fact, I have two problems:
key
ofref
that is not working I think,- so when I want to display
href5
of$value-doc2
if"$value-doc = translate($re-ana2, '#', '')
is true, I have the following message:
Description: A sequence of more than one item is not allowed as the first argument of tokenize() (", "http://live.babelnet.org/synse...", "https://framenet2.icsi.berkeley.edu...")
Currently, "$value-doc = translate($re-ana2, '#', '')
works since I have tested with several values, and the result is true
or false
. See last word of each <li>
What I would like to display:
<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>
To sum up: if @xml:id
of <gloss>
of second TEI
(corpus_ilimilku.xml
) = @ana[2]
of <re>
of current TEI
(in Fiddle content), then display idno @type URI
of each ref
that belongs to same parent node of gloss
.
I hope my explanation is clear. Sorry for my lack of English...
In advance, thank you.