Using Code Templates in oXygen XML Editor

Recently a project asked me how they might easily re-enter similar content in a file again and again while using oXygen XML Editor. They thought they might use a second file with a bits of template XML in and then … Continue reading

Posted in XML | Leave a comment

Metamark Wrapping: putting brackets around spanning markup

A project PI recently asked me the following XSLT question: In my TEI I have the following markup: How do I wrap a bracket around the <metamark> to <anchor> pairing, and moreover how do I make it red? That is, … Continue reading

Posted in TEI, XML, XSLT | 2 Comments

childish toys

I count religion but a childish toy, and hold there is no sin but ignorance. Jew of Malta, Christopher Marlowe Occasionally, indeed almost cyclically, on some of the mailing lists I’m on a big theoretical war erupts where someone declares … Continue reading

Posted in XML | Leave a comment

What is the TEI? And Why Should I Care? (A brief introduction for classicists)

Recently I gave a lecture to those interested in Digital Classics at the University of Oxford as part of the Digital Classics Seminar Series with people much more qualified to talk about Classics (digital or otherwise) than me.  I’m not, nor … Continue reading

Posted in TEI, XML | Leave a comment

Text Creation Partnership: Made for everyone

Oxford Text Archive TCP Catalogue From the 1 January 2015 the first phase of EEBO-TCP (Early English Books Online – Text Creation Partnership) transcribed books entered the public domain. They join those created by ECCO-TCP (Eighteenth Century Collections Online – … Continue reading

Posted in TEI, XML | Leave a comment

Auto Update Your TEI Framework in oXygen

One of the great things about the oXygen XML Editor that I use is that it allows frameworks as add-ons (from version 14+, though actually for the TEI one you need 15.2+) for various document types. These can consist of … Continue reading

Posted in TEI, XML | 15 Comments

oXygen-like CSS Colours for XML

I use oXygen as my preferred XML editor. I highly recommend it, it has lots of good features. By default XML markup in oXygen looks something like: When I’m writing encoding documentation for users I thought it might be nice … Continue reading

Posted in XML | 5 Comments

Self Study (part 6) Primary Sources

Self Study (Part 6) Primary Sources This post is the sixth in a series of posts providing a reading course of the TEI Guidelines. It starts with a basic one on Introducing XML and Markup then on Introduction to the Text Encoding Initiative … Continue reading

Posted in SelfStudy, TEI, XML | 3 Comments

Self Study (part 5) The TEI Header

This post is the fifth in a series of posts providing a reading course of the TEI Guidelines.  It starts with a basic one on Introducing XML and Markup an Introduction to the Text Encoding Initiative Guidelines and one on the TEI Default … Continue reading

Posted in SelfStudy, TEI, XML | 1 Comment

Self Study (part 4) TEI Core Elements

This post is the fourth in a series of posts providing a reading course of the TEI Guidelines.  It starts with a basic one on Introducing XML and Markup an Introduction to the Text Encoding Initiative Guidelines and one on the TEI … Continue reading

Posted in SelfStudy, TEI, XML | 1 Comment

Self Study (part 3): The TEI Default Text Structure

This (long) post follows on from posts on a basic one Introducing XML and Markup, and one on an Introduction to the Text Encoding Initiative Guidelines. Neither of these are really complete in themselves and barely scratch the surface, but … Continue reading

Posted in SelfStudy, TEI, XML | 3 Comments

Self Study (part 2): Introduction to the Text Encoding Initiative Guidelines

Quite awhile ago I posted http://blogs.it.ox.ac.uk/jamesc/2012/03/15/self-study-introducing-xml-and-markup/ as a list of reading and steps I would recommend someone follow if they were wanting to learn TEI XML and related technologies. This first step was to learn a little bit about XML … Continue reading

Posted in SelfStudy, TEI, XML | 1 Comment

Tokenizing and grouping rhyme schemes with XSLT functions

There is a project I work for which has encoded rhyme schemes in TEI using the @rhyme attribute on <lg> elements.  This contains some complex strings as they have used parentheses to indicate an internal rhyme and asterisks to indicate … Continue reading

Posted in TEI, XML, XSLT | Leave a comment

More about @rend

Lou Burnard has provided a technical summary of some of the recently issues discussed concerning @rend, but I thought I might provide some more explanation for those not as familiar with the technical background to the discussion. I would have … Continue reading

Posted in TEI, XML | 1 Comment

Self Study (part 1): Introducing XML and Markup

I’m occasionally asked what people should read and do if they want to teach themselves TEI P5 XML. Where should they start? This depends, obviously, on what time they have and what resources. I tend to recommend directed intensive training … Continue reading

Posted in SelfStudy, TEI, XML | 3 Comments

@rend and the war on text-bearing attributes

In discussing that the TEI attribute @rend from att.global although it allows you to type just about anything in it, doesn’t actually allow anything more that a set of single tokens. I recently explained to John, Paul, George, or Ringo … Continue reading

Posted in TEI, XML | 2 Comments

Is it Bill or Ben that is speaking of flowerpot men?

A friend asked a question about how to encode a dramatic speech that possibly should be considered two speeches. Owing to a printing mistake, the second speaker’s name was omitted, so some consider it a single speech by the first … Continue reading

Posted in TEI, XML | Leave a comment

grouping by group-adjacent=”boolean(self::lb)”

A project I was doing some work for had some input that looked like: What they wanted as output was a table-layout (icky) that aligned two nested tables of the original and the transliteration like: If we ignore the icky … Continue reading

Posted in TEI, XML, XSLT | Leave a comment

simple dynamic transformation of xml with htaccess, php, and xslt

I often transform from TEI XML to XHTML as part of projects, but in some instances it is more difficult to manage using things like the eXist XML Database or Apache Cocoon, or even AxKit. This is because the hosting … Continue reading

Posted in other, TEI, XSLT | Leave a comment

For Loops in XSLT2

A colleague asked me the other day about the proper way to do for-loops in XSLT2 or more specifically in XPath2. He knows all about xsl:for-each and xsl:for-each-group iteration over things, and of course recursively calling a template while passing … Continue reading

Posted in XSLT | Leave a comment