Questions tagged [tei]

Text Encoding Initiative, a semantically rich XML-based language for marking up literature such as classical documents.

TEI stands for Text Encoding Initiative, a semantically rich XML-based language for marking up literature (prose, poetry, drama) such as classical documents.

Links

148 questions
0
votes
0 answers

Lemma extraction for Commentary (T.E.I. -book)

I try to extract some text for creating a lemma in the back of a book and don't know how to grab the nodes: Consider the following: Romeo and JulietSome blabla is a…
martinanton
  • 217
  • 1
  • 7
0
votes
1 answer

Outputting HTML from multiple for-each XSLT segments

I want to show all the lines for a particular character in a stageplay. For that I need to nest multiple for-each statements to draw out the correct data. An excerpt from the XML file I am working with:
Leth
  • 1,033
  • 3
  • 15
  • 40
0
votes
1 answer

xslt: remove space before and after specific elements

I'm using Saxon PE 9.7, XSLT version 3.0. I try to remove space after before . I have tried several solutions: normalize-space(), translate(., ' ', ''), even css, white-space: nowrap... I also looked to the solution proposed to How do I…
Vanessa
  • 121
  • 12
0
votes
0 answers

Retrieve XML-TEI information through XSLT

I am a rookie and I would like to ask you the following questions: I am using the XML-TEI language to study a manuscript. I would be interested in retrieving the proper names of the manuscript (marked with the [name] tag) through an XSLT stylesheet…
0
votes
0 answers

xslt: highlight multiple targets of a link in webpage

I am working with XSL version 3.0. How to highlight multiple targets in a same HTML page? For example: First I have the TEI content to look to attribute value: some text The related XSL…
Vanessa
  • 121
  • 12
0
votes
1 answer

Display only if two TEI attributes values are equal

I have aTEI file with two sections, one for transcription, one for translation. In my transcription section, I have , and I want to display descendant-or-self of of the translation section, only if =…
Vanessa
  • 121
  • 12
0
votes
1 answer

XSL: add a link to a substring within a string made of several TEI-XML elements

Since few days, I try to add a link to substring w[@type='verb'] within a string. I am working on a TEI-XML transliteration of clay tablets, thus elements and @type of contained in are not always in the same order. XSLT version 3.0:
Vanessa
  • 121
  • 12
0
votes
2 answers

xsl: check if both strings are equal, if true then display another string

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:
Vanessa
  • 121
  • 12
0
votes
2 answers

xsl: removing duplicate occurrence of a current node

Following this post Compare variable in preceding-sibling with current node, I tried to compare current node in order to remove duplicate occurrences.
Vanessa
  • 121
  • 12
0
votes
2 answers

XSL: replace white space by hyphen

I am trying to translate white space by "-". Data come from TEI-XML data: ABCD and XSL file:
Vanessa
  • 121
  • 12
0
votes
1 answer

XSL: Display value if similar in two different nodes

I am a beginner in XSLT. My content comes from TEI file. ]>
Vanessa
  • 121
  • 12
0
votes
1 answer

Why do the xi:include lookups 'fail' in command line XSLT processing?

I generally use Oxygen to test my single-file transformations XML -> HTML. (The XML files use the TEI schema.) I use a lot of xi:includes to reference lists of people and places in my markup using @xml:id. I do the…
jbrehr
  • 775
  • 6
  • 19
0
votes
1 answer

XSLT transformation at command line (using Saxon prepackaged with Oxygen)

I am using command line on Mac OS X (10.11.5) to try transformations outside of Oxygen using Saxon (as I get ready to do bulk processing of large sets of XML-TEI files to HTML). I use the following basic command: java -cp /Applications/Oxygen XML…
jbrehr
  • 775
  • 6
  • 19
0
votes
2 answers

Avoiding cardinality problems while rendering multiple TEI elements

I'm trying to render the $respStmt entries in this TEI Header: The Progress of Romance
Tonya Howe
  • 57
  • 5
0
votes
2 answers

TEI-P5: how to add a css classname to html table tag?

I'd like to style a specific class of tables differently in transformed HTML via CSS. For example in XML: Manuscrit Bodmer Manuscrit fr. 1457
StandardNerd
  • 4,093
  • 9
  • 46
  • 77