On 3/6/2024 11:18 AM, Marco Patzer wrote:
On Tue, 5 Mar 2024 23:14:04 +0100
Wolfgang Schuster <wolfgang.schuster.li...@gmail.com> wrote:

Here is the official solution:

\startxmlsetups xml:meta
    \setupmetadata
      [author={\xmltext{#1}{/author}},
       title={\xmltext{#1}{/title}}]
\stopxmlsetups

So now we have:

\setupinteraction
   [title=FooBar]

\setupdocument
   [metadata:title=FooBar]

that just sets defaults for \setupinteraction so that they inherit from document

\setupmetadata
   [title=FooBar]

that's for those who go global

Are any of those deprecated or the preferred way? I'm starting to
get confused.

even if we would use \setupmetadata we'd still have \setupinteraction because we remain compatible

Hans

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
       tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

Reply via email to