ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* XML and multiple keyword attributes
@ 2003-02-07 11:14 Martin Kolařík
  2003-02-07 20:12 ` Simon Pepping
  2003-02-08 16:35 ` Hans Hagen
  0 siblings, 2 replies; 3+ messages in thread
From: Martin Kolařík @ 2003-02-07 11:14 UTC (permalink / raw)


Hello Hans,

isn't something new in reading/processing XML attributes? I used it before
more than half year, now I'm going to use it again -- I want to define in
XML something like <td align="middle, lohi"/>...</td> and I want to process
this in ConTeXt like \bTD[align={middle, lohi}] using something like
\expanded{\bTD[align=\XMLop{align}]}.

Then I did not succeeded in any way,

thanks,

Martin

--------
Martin Kolarik
Moravske Pristroje, a.s., Masarykova 1148, Zlin 76302
tel. +420 603 498 498, fax +420 577 107 171
web: http://www.mii.cz
--------
e-mail: kolarik@mii.cz
e-mail: kolarik@click.cz
tel. +420 603 535 593

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

* Re: XML and multiple keyword attributes
  2003-02-07 11:14 XML and multiple keyword attributes Martin Kolařík
@ 2003-02-07 20:12 ` Simon Pepping
  2003-02-08 16:35 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Simon Pepping @ 2003-02-07 20:12 UTC (permalink / raw)


On Fri, Feb 07, 2003 at 12:14:15PM +0100, Martin Kola?ík wrote:
> Hello Hans,
> 
> isn't something new in reading/processing XML attributes? I used it before
> more than half year, now I'm going to use it again -- I want to define in
> XML something like <td align="middle, lohi"/>...</td> and I want to process
> this in ConTeXt like \bTD[align={middle, lohi}] using something like
> \expanded{\bTD[align=\XMLop{align}]}.

This seems to be OK, except that you do not have the braces around the
expanded value. Try this: \expanded{\bTD[align={\XMLop{align}}]}. Note
also that \bTD ... \eTD must be used with
\defineXMLpickup[td]{\expanded{\bTD[align={\XMLop{align}}]}}{\eTD}

Regards, Simon

-- 
Simon Pepping
email: spepping@scaprea.hobby.nl

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

* Re: XML and multiple keyword attributes
  2003-02-07 11:14 XML and multiple keyword attributes Martin Kolařík
  2003-02-07 20:12 ` Simon Pepping
@ 2003-02-08 16:35 ` Hans Hagen
  1 sibling, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2003-02-08 16:35 UTC (permalink / raw)


At 12:14 PM 2/7/2003 +0100, =?iso-8859-2?Q?Martin_Kola=F8=EDk?= wrote:
>Hello Hans,
>
>isn't something new in reading/processing XML attributes? I used it before
>more than half year, now I'm going to use it again -- I want to define in
>XML something like <td align="middle, lohi"/>...</td> and I want to process
>this in ConTeXt like \bTD[align={middle, lohi}] using something like
>\expanded{\bTD[align=\XMLop{align}]}.
>
>Then I did not succeeded in any way,
+
\expanded{\bTD[align={\XMLop{align}]}

so, you need extra braces for the expanded commalist

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------
                        information: http://www.pragma-ade.com/roadmap.pdf
                     documentation: http://www.pragma-ade.com/showcase.pdf
-------------------------------------------------------------------------

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

end of thread, other threads:[~2003-02-08 16:35 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-07 11:14 XML and multiple keyword attributes Martin Kolařík
2003-02-07 20:12 ` Simon Pepping
2003-02-08 16:35 ` Hans Hagen

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).