Post by Hans HagenYou want to autogenerate that? That could become quite huge (And
probably most would be discarded later anyway of you want all
permutations of elements and attributes)
Just elements would work for me.
Post by Hans HagenPost by Hans Hagen[...]
i'm still puzzled what you want
Hans,
Iâm only guessing (after testing the XML analyzing ability that you
discovered us with a single XML file).
The analysis is important, but after that I have to write the actual
environment.
I think that the basic structure that I sent in
https://mailman.ntg.nl/pipermail/ntg-context/2016/084582.html is
useful
to avoid writing myself the environment.
You want to autogenerate that? That could become quite huge (And
probably most would be discarded later anyway of you want all
permutations of elements and attributes)
I mean, of course I have to add the relevant commands to handle in
ConTeXt each element. But with the basic scheme, I know which
elements
(in the broadest sense) I have to setup.
I want to avoid writing the whole element list in the environment by
hand. But I may be doing wrong (this is totally new to me).
Or do you write (type) each environment from scratch after using the
report generated by ConTeXt?
We just start with the trivial things and then look at the specific
structures. We get either relative simple html like xml or we get quite
complex educational markup, with quite demanding rendering and multiple
products. The good news is that the number of elements is always limited
(analyzing would not really work well because it can be that thousands
of files need to be loaded and merged which itself is not a problem, but
one then always need to interpret what needs to get loaded).
Hans
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | 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!
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
___________________________________________________________________________________