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

Translating XML -> HTML & RTF

  • From: Tony McDonald <tony.mcdonald@n...>
  • To: xml-dev@i...
  • Date: Sat, 23 Jan 1999 15:12:09 +0000

translating xml
Hi all,
I'm working on a document management system for Medical Student 
'Study Guides' which will allow combining of elements from various 
XML documents into a single 'document' and thereonto either an HTML 
or RTF rendering. I would expect our students to select (say) all the 
sections that are of type 'Core Content' across various sections of 
the curriculum and then the system combines them into a single unit.

My (tentative layout is something like)

<studyguide title='Organisation of Tissues'>
...
<section title='Core Content' sg_title='Organisation of Tissues'> *1*
<text>This part of the course....	</text>
<items>
<item>Survey of human development;</item>
<item>Pre-implantation stages of pregnancy: fertilization, cleavage 
and implantation;</item>
<item>Formation of germ layers and early derivatives;</item>
<item>Establishment of the basic embryonic body plan;</item>
<item>Causal mechanisms in early development and their clinical 
relevance.</item>
</items>
</section> *2*
...
</studyguide>

I'm using an Expat enabled parser to scan the resultant documents and 
(try) to do the translations.

My problem (or at least one of them) is that I would like the 
<section>..</section> tag to be replaced by a <h2 
class="section">Core Content: Organisation of Tissues</h2> construct, 
but using expat, I end up with the closing </h2> tag at the line 
marked *2* above. I've written some bloody messy code that gets 
around that (ie places the <h2>..</h2> tag sequence up at *1*), but 
I'm wondering if this doesn't imply that there's something inherently 
wrong with my document structure (or more likely my understanding).

Am I missing a rather obvious (and hopefully simple) point here? I'm 
pretty pleased with my initial attempts at getting my documents into 
XML (thanks Marcus!!) and I can see *so* many good things coming out 
of doing this project 'the XML way' that the loong hours put in at 
the keyboard is well worth it.

They aren't kidding that up-translation is an entropy lowering 
process, I feel like I've personally lowered the global temperature 
by a degree or two....sheesh!

many thanks in advance,
Tone
------
Dr Tony McDonald,  FMCC, Networked Learning Environments Project
The Medical School, Newcastle University Tel: +44 191 222 5888
Fingerprint: 3450 876D FA41 B926 D3DD  F8C3 F2D0 C3B9 8B38 18A2

xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev@i...
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/
To (un)subscribe, mailto:majordomo@i... the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo@i... the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa@i...)


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
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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.