ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Hans Hagen <pragma@wxs.nl>
Subject: Re: definedescription and XML
Date: Thu, 04 Jan 2007 16:55:46 +0100	[thread overview]
Message-ID: <459D2382.20600@wxs.nl> (raw)
In-Reply-To: <loom.20070104T154657-915@post.gmane.org>

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

  reply	other threads:[~2007-01-04 15:55 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-04 14:52 Johannes Graumann
2007-01-04 15:55 ` Hans Hagen [this message]
2007-01-04 16:23 Johannes Graumann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=459D2382.20600@wxs.nl \
    --to=pragma@wxs.nl \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).