[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Transformation problem tei > xhtml

Subject: Transformation problem tei > xhtml
From: Daniel O'Donnell <daniel.odonnell@xxxxxxxx>
Date: Mon, 11 Apr 2005 23:42:15 -0600
transformation problem
Hi,

I have a problem I've been working on but for which I keep hitting a wall. It came up on TEI-L, so I think I know the general direction to go in, but it wasn't ultimately solved there completely.

The issue involves paragraphs of the following type (1), marked up in invalid xhtml (in this example, 1 or more blockquotes can be replaced by any other block level element, e.g. table or ol|ul):

<p>Text text text:
  <blockquote>
    <p>Quotation quotation quotation.</p>
  </blockquote>
 More comment on this quotation.
  <blockquote>
     <p>Another long quotation.</p>
  </blockquote>
</p>

In TEI, this might be encoded as follows (2):

<p>Text text text:
  <quote>
    <p>Quotation quotation quotation.</p>
  </quote>
 More comment on this quotation.
  <quote>
     <p>Another long quotation.</p>
  </quote>
</p>

In valid XHTML, however, <p> can't contain the equivalent block level elements like <blockquote>, <table>, <list>, so the text would need to be encoded (3):

<p>Text text text:</p>
  <blockquote>
    <p>Quotation quotation quotation.</p>
  </blockquote>
 <p>More comment on this quotation.</p>
  <blockquote>
     <p>Another long quotation.</p>
  </blockquote>

The question is, how does one get from the TEI coding (2), where <p> can contain 'block level' elements like quote/p, table, and list, to the XHTML coding (3), where <p> can't contain block level equivalents blockquote/p, table, and ul|ol ?

Ideally as another constraint, the first html:p in a sequence like (1) should be distinguished from the rest so that one can recognise the beginning of a rhetorical paragraph--perhaps by the addition of a section number.

Any suggestions? Rather than rehearse the suggestions from TEI (which I can get almost to work, but not quite), I thought I'd ask here to see what brilliant ideas might come up.

Thanks in advance.
-dan

--
Daniel Paul O'Donnell, PhD
Associate Professor of English
University of Lethbridge
Lethbridge AB T1K 3M4
Tel. (403) 329-2377
Fax. (403) 382-7191
E-mail <daniel.odonnell@xxxxxxxx>
Home Page <http://people.uleth.ca/~daniel.odonnell/>
The Digital Medievalist Project: <http://www.digitalmedievalist.org/>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.