* typesetting xml targets
@ 2010-10-08 12:46 Thomas A. Schmitz
2010-10-08 14:44 ` Hans Hagen
0 siblings, 1 reply; 2+ messages in thread
From: Thomas A. Schmitz @ 2010-10-08 12:46 UTC (permalink / raw)
To: mailing ConTeXt users list for
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...
Thanks, and best
Thomas
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: typesetting xml targets
2010-10-08 12:46 typesetting xml targets Thomas A. Schmitz
@ 2010-10-08 14:44 ` Hans Hagen
0 siblings, 0 replies; 2+ messages in thread
From: Hans Hagen @ 2010-10-08 14:44 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Thomas A. Schmitz
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 : ntg-context@ntg.nl / 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-10-08 14:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-08 12:46 typesetting xml targets Thomas A. Schmitz
2010-10-08 14:44 ` Hans Hagen
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).