Hello,

the following example might not be the most minimal possible example,
but I hope that it is short enough. I'm using
    \setupheadertexts
        []
        [subject]
to print subject into header, but the headers are screwed up in some
very weird way. My real document behaves differently that this minimal
example, but even here one can notice that headers say:
- This is first heading
- This is fourth heading
- This is second heading
- This is fourth heading
instead of getting the second heading.

Does anyone have any idea what is going on?

Thank you,
   Mojca



\startbuffer[test1]
<html>
<body>
<h1>This is first heading</h1>
<p>some text</p>
<h1>This is second heading</h1>
<p>some text</p>
</body>
</html>
\stopbuffer

\startbuffer[test2]
<html>
<body>
<h1>This is third heading</h1>
<p>some text</p>
<h1>This is fourth heading</h1>
<p>some text</p>
</body>
</html>
\stopbuffer

\startxmlsetups all:html
    \xmlsetsetup{main}{h1}{*}
\stopxmlsetups

\startxmlsetups h1
    \subject{\ignorespaces\xmlflush{#1}}
\stopxmlsetups

\xmlregistersetup{all:html}

\setuphead
    [subject]
    [style=\bfa,
     page=odd]
\setupheadertexts
    []
    [subject]

\starttext
I have some text first
\xmlprocessbuffer{main}{test1}{}
\xmlprocessbuffer{main}{test2}{}
\stoptext
___________________________________________________________________________________
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
___________________________________________________________________________________

Reply via email to