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

create a link with xslt in html to other html

I have the following xml code:
4
votes
2 answers

Sorting several XML files along dates and merging it into one with XSLT

I have several single XML-files containing historic letters in TEI. Now I want to merge them into one single file with the date as the criteria. A1.xml Letter 1
martinanton
  • 217
  • 1
  • 7
4
votes
3 answers

transforming sequence of elements to tree

I have a list of elements with information about how deep they are located in an XML tree. The elements at "the bottom," i.e. those elements that occur before an element with a lower depth, contain text.
3
votes
2 answers

Update XML and reorder elements using XQuery

TLDR : I need to move an element as first child of another using XQuery I'm working on an XML TEI critical edition (an alignment of three different versions of a text) and need to update my document to show the base version of the text. At the…
paulhector
  • 85
  • 7
3
votes
1 answer

XSL:FO float for displaying margin notes - breaks document

I have a large medieval manuscript transcribed into XML (using TEI schema). I am using xsl:fo and Apache FOP to process into PDF. The file is constructed using nested ,

, as shown below. Occasionally is used for margin…

jbrehr
  • 775
  • 6
  • 19
3
votes
2 answers

XML - XSLT to HTML transformation - eliminating specific line/carriage returns

I am outputting an XML file to HTML using XSLT 3.0 and I'm having a trouble eliminating whitespace before commas and periods. Below is an example of the precise problem I am having: the XML has line/carriage returns in it which are being reproduced…
jbrehr
  • 775
  • 6
  • 19
3
votes
2 answers

LaTex to Tei (xml)

I'm trying to convert a tex file to an xml. In particular I'll be interested in understanding if it is possible to generate a TEI xml file (http://www.tei-c.org/index.xml) to be published online from a tex one. Is there any info out there on how…
3
votes
1 answer

XPath that finds elements with less than 100 characters

I have some XML like this:
Flores Es muchacho, no te asombre. Comendador
José
  • 533
  • 1
  • 4
  • 14
3
votes
1 answer

Use XSLT to transform XML to text with Maximum Width

I am using XSLT (XSLT 2.0 is fine) to transform XML (TEI) to readable plaintext (with some minor modifications/challenges—preserving space for poetry; making titles all upper case). So far everything is working as I'd like, but in the interests of…
cforster
  • 577
  • 2
  • 7
  • 19
2
votes
1 answer

Does BeautifulSoup 4 resolve external DTD entities?

I have a TEI document containing characters encoded as &stern_1; which are mapped in a separate Zeichen.dtd (Document Type Definition) file. The file Zeichen.dtd contains this: I…
Swen Vermeul
  • 104
  • 6
2
votes
1 answer

XSL prevent new whitespace/line return in copy

In my text-based XML corpus I have a lot of markup of different data (using TEI schema). As part of the process of transforming these documents into a PDF, I am preprocessing it into a simplified file for xsl:fo to transform. In that preprocessing I…
jbrehr
  • 775
  • 6
  • 19
2
votes
1 answer

XSL:FO how to 'flow' info separate from body into xsl-region-start and xsl-region-end

I have a medieval manuscript encoded in XML (using TEI schema). The manuscript has a 'body' which has been mapped in XSL:FO to xsl-region-body and outputs perfectly. The manuscript also features some 'glosses' (notes) in the left and right margins.…
jbrehr
  • 775
  • 6
  • 19
2
votes
1 answer

xml-tei in R: selecting attributes in nodes

I have an xml-tei file: #in R doc <- xmlTreeParse("FILE_NAME" , useInternalNodes=TRUE, encoding="UTF-8") ns = c(ns = "http://www.tei-c.org/ns/1.0") namespaces = ns getNodeSet(doc,"//* and //@*", ns) doc I am looking at two elements inside my…
Vanessa
  • 121
  • 12
2
votes
1 answer

Create data frame from TEI XML using xml2

I'm trying to create a data frame of an TEI-XML version of Moby Dick using Hadley Wickham's xml2 package. I want the data frame to ultimately look like this (for all the words in the novel): df <- data.frame( chapter = c("1", "1", "1"), words =…
JoeF
  • 733
  • 1
  • 7
  • 21
2
votes
1 answer

Transform XML to HTML in XSLT with string length condition

I have a XML file using TEI build like that:

sentence e1. sentence f1

sentence e2

1
2 3
9 10