ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt, XML, multiple attributes evaluation
@ 2005-11-29  4:30 Johannes Graumann
  2005-11-29  7:34 ` Richard Gabriel
  2005-11-29  7:37 ` Taco Hoekwater
  0 siblings, 2 replies; 10+ messages in thread
From: Johannes Graumann @ 2005-11-29  4:30 UTC (permalink / raw)


Hello again,

Another one:
I'm trying to expand 
>\defineXMLenvironment [list]%
> {%
>  \expanded{%
>   \startitemize%
>    [%
>     \XMLifequalelse{list}{packed}{yes}{packed}{unpacked}%
>    ]%
>  }%
> }%
> {\stopitemize}

which can deal with things like
><list packed="yes">
> <item>
> </item>
></list>

To something able to deal with multiple attributes (a "setup" statement for
now):
><list packed="yes" setup="n">
> <item>
> </item>
></list>

I have tryed multiple incarnations of
>\defineXMLenvironment [list]%
> {%
>  \expanded{%
>   \startitemize%
>    [%
>     \XMLifequalelse{list}{setup}{n}{n}{},%
>     \XMLifequalelse{list}{packed}{yes}{packed}{unpacked}%
>    ]%
>  }%
> }%
> {\stopitemize}

but this doesn't work ...

Can anybody give me any pointers here?

Thanks for time and help,

Joh

-- 
+----------------------------------------------------------------------+
| Johannes Graumann, Dipl. Biol.                                       |
|                                                                      |
|      Graduate Student                Tel.: ++1 (626) 395 6602        |
|      Deshaies Lab                    Fax.: ++1 (626) 395 5739        |
|      Department of Biology                                           |
|      CALTECH, M/C 156-29                                             |
|      1200 E. California Blvd.                                        |
|      Pasadena, CA 91125                                              |
|      USA                                                             |
+----------------------------------------------------------------------+

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-11-30 20:07 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-11-29  4:30 ConTeXt, XML, multiple attributes evaluation Johannes Graumann
2005-11-29  7:34 ` Richard Gabriel
2005-11-29  9:52   ` Hans Hagen
2005-11-29 11:02     ` Richard Gabriel
2005-11-29  7:37 ` Taco Hoekwater
2005-11-29 19:58   ` Johannes Graumann
2005-11-29 21:15     ` Hans Hagen
2005-11-30  1:36       ` Johannes Graumann
2005-11-30  8:36         ` Hans Hagen
2005-11-30 20:07           ` Johannes Graumann

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).