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
1
vote
2 answers

eXist DB and Xquery : xincludes or collections (TEI-XML)?

I have a corpus in TEI-XML which uses a 'master' corpus XML document that then contains, via xi:include, thousands of other documents. Each of these documents themselves contain xi:includes to master lists of named entities (people, places, etc…
jbrehr
  • 775
  • 6
  • 19
1
vote
2 answers

xsl: when two nodes are equal, display child of first node

I'm using XML Editor 19.1, Saxon P.E 9.7. For each selected div, I'm looking to display a graphic/@url, following each if surface/@xml:id = div/@facs. XSL
Vanessa
  • 121
  • 12
1
vote
1 answer

xsl: display result of concat variable with comma between each value

I have the following variable: ]>
Vanessa
  • 121
  • 12
1
vote
1 answer

Counting created lines on ancestor chapter level

I am working on a TEI document with a basic structure like this. There are several "mainText"-sections within a chapter; these sections have separate normalized and OCR versions of the actual text.
dmnk.h
  • 25
  • 5
1
vote
2 answers

XSLT copy XML file, change value of one attribute

Note: edited with updated code, producing new problems with namespaces. Using XSLT 3.0 and Saxon HE, I'm copying an XML document and in copying it I need to increment the value of attribute @n in the element
. In this case I…
jbrehr
  • 775
  • 6
  • 19
1
vote
2 answers

Can multiword abbreviations in TEI be combined with and elements?

I'm developing a TEI P5 XML text edition that requires that abbreviations include elements to signal abbreviation markers and elements to indicate the expanded matter of these abbreviations within their respective and
1
vote
1 answer

TEI Documents to HTML with PHP

I've problems with some old documents encoded in TEI and I need to read these documents and print their content into a webpage (then HTML format). Does there exists some classes or some tools userful in php to convert these files (I'm new with the…
user4015351
1
vote
2 answers

XSLT on XML breaks blockquote in HTML output

I'm having a problem with the HTML output from an XSL transformation on XML. In the XML, you can see there is a page break in the middle of a paragraph . The stylesheet inserts a visual page break at this point, but this breaks the formatting of…
Kirby
  • 13
  • 1
  • 5
1
vote
3 answers

XSL for-each on space-separated attribute values

for my research project, I have this document in XML/TEI

r.let
  • 69
  • 1
  • 8
1
vote
2 answers

Select all nodes between empty elements throughout xml document, wrap each selection with div

I'm working on an XSLT to transform XML (tei) docs to HTML. The goal is to create divs that can be styled to display as fixed columns. In the docs, column beginnings are indicated by 2 empty elements (milestone and cb). "milestone" indicates that…
adehner
  • 11
  • 2
1
vote
0 answers

Find text after specified element until next specified element

I ran into this problem: Im using TEI anchor elements to describe text lines. To describe these lines I am using an anchor element (which is an empty element) at the beginning and anchor element (which is also an empty element) at the end of each…
Chris Ha
  • 301
  • 2
  • 10
1
vote
1 answer

Traversing TEI in Python 3, text comes up empty for some entities

I have a TEI-encoded xml file with entities as follows: Sampson. Gregory: A my word wee'l not carry…
Matt L.
  • 3,431
  • 1
  • 15
  • 28
1
vote
2 answers

xml (TEI P5) visualisation method

I've encoded a book with xml, according to TEI P5 guidelines, and I'm trying to visualize it in an html page. The real aim is to visualize the encoded text with all its formatting tags of TEI P5 guidelines (text formatting, inner references, etc.).…
Fotini
  • 13
  • 5
1
vote
2 answers

XSLT and MathJax

I am new to XSLT and StackOverflow. I'm trying to use the TEI Boilerplate stylesheet to render a TEI document in the browser. All goes well until I try get MathJax to render the formulae. I've modified the teibp.xsl from my local copy of TEI…
rc1988
  • 11
  • 3
1
vote
1 answer

Preceding-sibling and following-sibling not working with additional element

I first want to apologize for the length of this question, but hopefully providing this information will help. I am attempting to use a single xsl on multiple xml documents, and it works on my original document (the text of four walls in a room,…
medievalmatt
  • 427
  • 2
  • 12
1 2
3
9 10