Jelle Huisman wrote:
On 28/10/2009 15:32, Taco Hoekwater wrote:
The next does not deserve a price for elegance, but because
\xmlflush is expandable (this is its best feature, I think!)
you can use the traditional tex toolkit macros:

\startxmlsetups xml:h3
     \doifinstringelse{Skip title}{\xmlflush{#1}}
       {}
       {\subject{\xmlflush{#1}}}
\stopxmlsetups

I'm fairly certain that there are nicer solutions, however.

Thanks Taco, this works, I owe you a beer at next year's ConTeXt meeting! I'm still interested in a 'proper' xml (= non-TeX) based solution, anyone?

\startxmlsetups xml:h3
   \xmldoifnot {#1} {[text()='Skip title']} {
       \subject{\xmlflush{#1}}
   }
\stopxmlsetups

or:

\xmlsetsetup {main} {h3[text()='Skip title']} {-}


-----------------------------------------------------------------
                                          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 : [email protected] / 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