On 8/25/2023 1:45 PM, denis.ma...@unibe.ch wrote:
-Ursprüngliche Nachricht-
Von: Hans Hagen
Gesendet: Freitag, 25. August 2023 09:06
An: Maier, Denis Christian (UB) ; mailing list for
ConTeXt users
Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute
On 8/25/2023
> -Ursprüngliche Nachricht-
> Von: Hans Hagen
> Gesendet: Freitag, 25. August 2023 09:06
> An: Maier, Denis Christian (UB) ; mailing list for
> ConTeXt users
> Betreff: Re: [NTG-context] Re: xmldoif: checking for contents of attribute
>
> On 8/25/2023 8:22 AM, de
On 8/25/2023 8:22 AM, denis.ma...@unibe.ch wrote:
Thanks for your help. I can use that, but why is this sort of double-checking
necessary here?
because containsa in a function that has checking while find is just the
lua find .. so i've added a check in that one too now but no upload
Hans
> -Ursprüngliche Nachricht-
> Von: Thomas A. Schmitz
> Gesendet: Donnerstag, 24. August 2023 16:35
> An: mailing list for ConTeXt users
> Betreff: [NTG-context] Re: xmldoif: checking for contents of attribute
>
>
> One way would be to do the search in Lua
> -Ursprüngliche Nachricht-
> Von: Hans Hagen
> Gesendet: Donnerstag, 24. August 2023 16:54
> An: ntg-context@ntg.nl
> Betreff: [NTG-context] Re: xmldoif: checking for contents of attribute
>
> On 8/24/2023 4:11 PM, denis.ma...@unibe.ch wrote:
> > Hi,
> >
On 8/24/2023 4:11 PM, denis.ma...@unibe.ch wrote:
Hi,
I'm trying to check whether an attribute contains (or, actually starts with) a
given string.
I've tried a whole bunch of different combinations, but I've had no luck so
far. Minimal example below. Anyone has a hint?
Best,
Denis
One way would be to do the search in Lua; when you have multiple searches to
perform, that may be the easiest way to go. For example:
\startxmlsetups xml:test
\xmlsetsetup{#1}{*}{-}
\xmlsetsetup{#1}{doc|element}{xml:*}
\stopxmlsetups