Dear list,

I have the following sample:

    \startbuffer[demo]
    <div id="myspecialid">
    <h1>Title</h1>
    <p>A pragraph</p>
    </div>
    \stopbuffer

    \startxmlsetups xml:initialize
         \xmlsetsetup{#1}{div|h1|p}{xml:*}
    \stopxmlsetups

    \xmlregistersetup{xml:initialize}

    \startxmlsetups xml:div
         \xmlflush{#1}
    \stopxmlsetups

    \startxmlsetups xml:h1
         \chapter[need-id-from-div]{\xmlflush{#1}}
    \stopxmlsetups

    \startxmlsetups xml:p
        \xmlflush{#1}\par
    \stopxmlsetups

    \starttext
         \xmlprocessbuffer{main}{demo}{}
    \stoptext

How could I make that xml:h1 reads the attributes from its parent
element (a division)?

Many thanks for your help,


Pablo
-- 
http://www.ousia.tk
___________________________________________________________________________________
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