On 9/14/07, Hans Hagen wrote: > Mojca Miklavec wrote: > > Hello, > > > > I was trying to figure out how to process simple HTML files with the > > new code, but I fail to understand the details. Here's a simple file I > > would like to process: > > > keep in mind that this is still somewhat experimental Sure :) That's why I'm sending files for testing :) :) :) > % best define mappings before loading the file > > \startxmlsetups all:html > \xmlsetsetup{main}{head|h1|h2}{*} > \stopxmlsetups > > \xmlregistersetup{all:html} > > % register this so that it's done for each load > > \startxmlsetups h1 > \subject{\xmlflush{#1}} > \stopxmlsetups > > \startxmlsetups h2 > \subsubject{\xmlflush{#1}} > \stopxmlsetups > > \startxmlsetups head > \startstandardmakeup > THIS IS ABOUT: \xmlfilter{main}{/head/title/text()} > \stopstandardmakeup > \stopxmlsetups > > % that's it > > > \setupcolors[state=start] > \setuphead[subject][style=\bfd,color=blue] > \setuphead[subsubject][style=\bfc,color=blue] > > \starttext > > \xmlprocess{main}{test.html}{} > > \stoptext Great! This works perfect and seems much easier to write than the old code, though I still have no idea how to implement some parts of it: - where to plug in the entities such as  , ≤, ... - how to catch classes: how to differentiate between

title

and

title

- and some more - there are some simple examples in the attachment (too long to copy-paste) Thanks again, Mojca