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
1 answer

Custom frameworks in BaseX (as Oxygen alternative)?

Oxygen is certainly the most common software used for digital editing, but it requires a licence, which can be a huge obstacle in teaching. This is why I was wondering if BaseX could be an alternative. One great advantage of Oxygen is that it…
OnceUponATime
  • 450
  • 4
  • 12
0
votes
1 answer

XSLT breaking up XML text based on the value of an attribute of a containing element doesn't work in TEI

I have a nice XSLT code to break up the text of 'p' (paragraph) elements in an XML file into 'w' (word) elements, based on spaces in the string. However, I only want this to affect 'p' elements with the value 'arn' for the attribute @xml:lang. (I…
0
votes
2 answers

How to "grab text of a node" and put it as data-element in html

I have several entries like this: Juan Fernandez-33.666667, -78.833333 and I want to transform it into
user9813195
0
votes
1 answer

Enclose hyphenation in its own element with XSLT

Given the following XML:

Aber, Schertz bey Seite geſetzet; wer mir und ſo viel ehrlichen Bieder-Maͤnnern nicht glauben will, der probire es bey den haͤuffigen Kirchen- Sachen, die ein Sangloser Organiſt etwa geſchmadert hat,…

Karl von Moor
  • 8,484
  • 4
  • 40
  • 52
0
votes
3 answers

Extract text and (hlStart and hlEnd) tags from simple html

I have a following part of html/xml file:

Przed nami jeszcze trzy

0
votes
1 answer

Simple unflattening HTML file through XSL

I looked around for unflattening procedures through XSL, but none of them really works for me, although I believe my case is pretty simple. I have a collection of HTML, always the same structure, I would like to unflatten through XSL transformation.…
DonRamiro
  • 51
  • 6
0
votes
1 answer

apply XSL template to element that is selected via key function

This is an adapted follow-up question to my previous one. I have got to xml files referring to one another by the corresp-attribute. main.xml
Alex W.
  • 119
  • 9
0
votes
1 answer

Align xml elements via xslt using alignment informfation from attributes

I would like to align multiple translations of a TEI-encoded text and tranform it via xslt into html. The xml (adapted from https://www.tei-c.org/release/doc/tei-p5-doc/en/html/ref-linkGrp.html) looks like this:
Alex W.
  • 119
  • 9
0
votes
1 answer

Concatenate text nodes by milestone element using XSLT 2.0

My XML files have TEI milestone elements like
0
votes
1 answer

XSLT: Dealing with TEI milestone elements

My question is related to: XSLT with overlapping elements? – but the proposed solution is not working for me. Input I have some TEI-XML encoded like this: some text that is…
B Polit
  • 162
  • 8
0
votes
1 answer

xQuery: find not annotated text in TEI

I have a problem with writing an xQuery. I have a collection of letters that is in TEI and every person, organisation and place in the text has to be in , or . I also have an XML key list with entries like
grillz
  • 9
  • 2
0
votes
1 answer

How to create a HTML hex entity with XSLT

I'm experimenting with writing an XSLT stylesheet to generate HTML from a Text encoded in XML according to TEI standard. Now, when it comes to special characters, I'm running into difficulties - here's an example: The word "ſem" (normalized "sem",…
Balduin
  • 415
  • 4
  • 11
0
votes
1 answer

XML to copy all but text() from one XML to another, based on match

Hi there – I'm new to XSLT: I have two XML TEI files with some matching elements. I would like to replace every element in the fist file TEI_test.xml with the corresponding element in the second file lookup.xml, such that the attribute @lemma…
0
votes
0 answers

XSLT/TEI: How to get two pages displayed next to each other?

I am currently working on a digital edition of a certain work. I have every double-page (so f28v and f29r inside on document)
user9813195
0
votes
0 answers

How to customize TEI scheme / how to add custom attributes to TEI Doc?

I want to use the teiCorpus element/scheme that can be found in Oxygen XML to structure a corpus. Sadly i dont know where to add attributes like or . I tried to put them into the header or into the body but Oxygen doesn't validate…
Dafuq
  • 25
  • 4