ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* definedescription and XML
@ 2007-01-04 14:52 Johannes Graumann
  2007-01-04 15:55 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Johannes Graumann @ 2007-01-04 14:52 UTC (permalink / raw)


Hello all,

After a good break I'm back at my XML obsession and am running into the
following issue: my environment-file contains these definitions

\defineXMLnested
  [reagentlist]
  [sample=]
  {\definedescription[definition][width=broad,distance=1em,sample={\XMLop{sample}}]}
  {}
\defineXMLnested
  [reagent]
  [label=]
  {\startdefinition{\XMLop{label}}}
  {\stopdefinition}

but in use, the definition-label-width is optimized for every single case,
rather than for the 'sample', meaning I get

One xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Twentyone xxxxxxxxxxxxxxxxxxxxxxx
          xxxxxxxxxxxxxxxxxxxxxxx

rather than 

One       xxxxxxxxxxxxxxxxxxxxxxx
          xxxxxxxxxxxxxxxxxxxxxxx
Twentyone xxxxxxxxxxxxxxxxxxxxxxx
          xxxxxxxxxxxxxxxxxxxxxxx

Can anyone please enlighten me as to what I'm missing here?

Thanks, Joh

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

* Re: definedescription and XML
  2007-01-04 14:52 definedescription and XML Johannes Graumann
@ 2007-01-04 15:55 ` Hans Hagen
  0 siblings, 0 replies; 3+ messages in thread
From: Hans Hagen @ 2007-01-04 15:55 UTC (permalink / raw)


Johannes Graumann wrote:
> Hello all,
>
> After a good break I'm back at my XML obsession and am running into the
> following issue: my environment-file contains these definitions
>
> \defineXMLnested
>   [reagentlist]
>   [sample=]
>   {\definedescription[definition][width=broad,distance=1em,sample={\XMLop{sample}}]}
>   {}
>   

\definedescription[definition][width=broad,distance=1em,sample={\XMLpar{reagentlist}{sample}{}}

since XMLop will change with each following element 

  {\expanded{\definedescription[definition][width=broad,distance=1em,sample={\XMLop{sample}}]}}

is also an option 



> \defineXMLnested
>   [reagent]
>   [label=]
>   {\startdefinition{\XMLop{label}}}
>   {\stopdefinition}
>
> but in use, the definition-label-width is optimized for every single case,
> rather than for the 'sample', meaning I get
>
> One xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>     xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> Twentyone xxxxxxxxxxxxxxxxxxxxxxx
>           xxxxxxxxxxxxxxxxxxxxxxx
>
> rather than 
>
> One       xxxxxxxxxxxxxxxxxxxxxxx
>           xxxxxxxxxxxxxxxxxxxxxxx
> Twentyone xxxxxxxxxxxxxxxxxxxxxxx
>           xxxxxxxxxxxxxxxxxxxxxxx
>
> Can anyone please enlighten me as to what I'm missing here?
>
> Thanks, Joh
>
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>   


-- 

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

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

* Re: definedescription and XML
@ 2007-01-04 16:23 Johannes Graumann
  0 siblings, 0 replies; 3+ messages in thread
From: Johannes Graumann @ 2007-01-04 16:23 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 53 bytes --]

Hans,

Thanks so much for your help once again!

Joh

[-- Attachment #1.2: Type: text/html, Size: 73 bytes --]

[-- Attachment #2: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

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

end of thread, other threads:[~2007-01-04 16:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-04 14:52 definedescription and XML Johannes Graumann
2007-01-04 15:55 ` Hans Hagen
2007-01-04 16:23 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).