Andrea Valle wrote:

> The html is w3c compliant and being automatically generated seems to be 
> consistent.
> 
> I'm able to do easily stuff like this, which is a promising start:
> 
> \startenvironment scEnv
> \enableregime[utf]
> \defineXMLenvironment [body] \starttext \stoptext
> %\defineXMLenvironment [style] \starthiding \stophiding
> \defineXMLcommand [p] \par
> \defineXMLgrouped [b] \bf
> \stopenvironment
> 
> 
> But:
> 1. how do I simply skip undesired tags? The \start-\stophiding trick 
> (which in any case does not work: why?) was a hack in order to not 
> typeset the stile tags

these are in fact buffers and buffers work on the unexpanded input stream

\defineXMLignore[style]

> 2. how can i map class attributes in order to specify for each of them 
> e.g fontname, points, color, indenting?

\mapXMLvalue cum suis ... see x-* files for examples

(in mkiv one can use a mixed tree/streem based model)

Hans

-----------------------------------------------------------------
                                           Hans Hagen | PRAGMA ADE
               Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      tel: 038 477 53 69 | fax: 038 477 53 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  : https://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to