On 9/16/07, Hans Hagen wrote:
i rewrote the parser (both xml and semi-xpath) so it may have been broken, i'll upload a new beta tomorrow
Hello Hans, Thanks a lot for fixing the issue with non-working \xmlatt. Now, I'm still slightly lost regarding two issues: - How to remove unneeded space? With \ignorespaces? - How to use the new verbatim code? I have tried to use \xmlsetfunction{main}{pre}{lxml.verbatim} but it didn't really work. % test.tex: \startxmlsetups all:html \xmlsetsetup{main}{h1|pre}{*} \stopxmlsetups \xmlregistersetup{all:html} % is this the proper way? \startxmlsetups h1 \subject{\ignorespaces\xmlflush{#1}} \stopxmlsetups \startxmlsetups pre {\bgroup\tt\obeylines\xmlflush{#1}\egroup} \stopxmlsetups \starttext \xmlprocess{main}{test.html}{} \stoptext % test.html <?xml version="1.0" encoding="utf-8"?> <html><body> <h1> How to get rid of this spacing in some elegant way? </h1> <p>Title followed by a paragraph ...</p> <pre> and some source c@de </pre> </body></html> Also, this fails because of the empty line: <h1> How to get rid of this spacing in some elegant way? </h1> Thanks a lot, Mojca