On 8-10-2010 2:46, Thomas A. Schmitz wrote:
Hi all,
I'm currently experimenting with the TEI schema for critical editions. There's
one thing that goes beyond my minimal understanding: for internal references,
the guidelines strongly suggest defining them with the xml:id attribute. Let's
take the example of a textual witness, which could be defined as
<witness xml:id="A">manuscript A</witness>
Whenever this witness is referenced, it will be done with a target:
<rdg wit="#A">Hello</rdg>
How can I catch such targets in my ConTeXt setup? Would it be possible to have the #A
translated into a macro \WIT:A or something like that? Would it be possible to have
ConTeXt read in the value of the<witness> tag to which the taget refers and
typset that? There must be something easier than a huge set of nested \doifelse
calls, but I can't quite find what would be the best way.
I hope this question isn't too confusing...
can you make me a small example file. i will fill in the bits for you then
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
| www.pragma-pod.nl
-----------------------------------------------------------------
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________