XML.com: XML From the Inside Out

XML.comWebServices.XML.comO'Reilly Networkoreilly.com
  Articles | Weblogs | Newsletter | Safari Bookshelf
advertisement

Article:
 To Tag or Not to Tag
Subject: Can TEI/XML really address the problem?
Date: 2004-06-02 06:45:49
From: Damian Cugley
Response to: Can TEI/XML really address the problem?

The fragment above shows how they have already had to compromise when structuring the text as a hierarchy. Logically, the verse lines should all be XML elements. Logically, each speach from a player should be an XML element. But speaches can contain many verse lines, but at the same time a verse line can be split between more than one speaker. Their compromise is to not mark up lines but instead to mark line *breaks* (the `lb` elements). To get the text of line 99 you presumably find the specified `lb` element and then extract text until the next one.


For what it's worth, there is a mark-up language specifically designed to work with overlapping text ranges: LMNL <http://www.lmnl.net/>. The site seems to be pretty moribund, however.


Previous Message Previous Message Move up to Parent Message Up Next Message No Next Message

Sponsored By:


Contact Us | Our Mission | Privacy Policy | Advertise With Us | | Submissions Guidelines
Copyright © 2008 O'Reilly Media, Inc. | (707) 827-7000 / (800) 998-9938