ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Alexandre Enkerli <aenkerli@indiana.edu>
Subject: XML Processing
Date: Tue, 20 May 2003 13:35:08 -0300	[thread overview]
Message-ID: <04E6633D-8AE1-11D7-B2FC-0003935A6512@indiana.edu> (raw)

Hello all,
I'm building an exam using "ExamView Pro" which has, surprisingly, an 
XML export feature. I'd like to process the exam content into ConTeXt. 
I've looked at the "Example" file and tried to understand how it all 
works, but I'm not sure I can. So far, I've been able to process 
entities and MathML using the mm* and ent as options for --xmlfilter 
(texexec --pdf --xmlfilter=mml,mmp,mmc,ent file.xml) but I can't even 
get <b> to work as planned with any of the xtag-* files. I'm guessing I 
need to use the x-contml.tex file, but I don't know why.
Then, I'll probably need some guidance to have everything work.
The ExamView XML format uses attributes but I'd be happy with just 
getting the basic format straight.
What makes it somewhat harder is that I don't have so much experience 
with ConTeXt anyway.
So, I'd appreciate any help.

Here's the basic structure of the data I want to process:
	<question>
		<text></text>
		<choices>
			<choice></choice>
		</choices>
		<answer></answer>
		<info>
			<difficulty></difficulty>
			<reference></reference>
			<text-objective></text-objective>
		</info>
	</question>

In LaTeX terminology (sorry!) what I want is to have all the question 
texts as items in an "enumerate" and answer choices in an alphabetical 
enumerate for each question. Doesn't sound too hard. In fact, I guess I 
could probably do a find and replace...

Thanks in advance for your help.

             reply	other threads:[~2003-05-20 16:35 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-05-20 16:35 Alexandre Enkerli [this message]
2003-05-21  8:11 ` Berend de Boer
2003-05-21 19:56 ` Simon Pepping
2003-05-21 20:12 ` Johannes Hüsing
2003-05-23 12:46   ` Hans Hagen
  -- strict thread matches above, loose matches on Subject: below --
2011-12-31 20:55 xml processing Meer, H. van der
2012-01-01 12:14 ` Hans Hagen
2002-08-26 11:33 XML processing Robbie Pickering
2002-08-26 14:40 ` Hans Hagen
2002-08-26 18:53 ` Simon Pepping
2002-08-26 19:25   ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=04E6633D-8AE1-11D7-B2FC-0003935A6512@indiana.edu \
    --to=aenkerli@indiana.edu \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).