On 3/1/26 15:05, Jairo A. del Rio wrote:
> […]
> I expected something like "IranMasoudPezeshkiansurgeon", but the
> "content" attribute with name="name" repeats thrice. I tried with other
> cases and I have the same result: the first result repeats. Any ideas on
> what's happening? Regards
Hi Jairo,
it’s in the details, lpaths expect this syntax:
element[@attribute='value']
This is actually indepedent from `\xmlattribute`, but this is part of
the lpath/xpath selection (as already mentioned by Denis).
To get something like "Name Value: profession (country)", your relevant
code should read:
\startxmlsetups xml:document
\xmlattribute{#1}{meta[@name='name']}{content}:\
\xmlattribute{#1}{meta[@name='profession']}{content}\
(\xmlattribute{#1}{meta[@name='country']}{content})
\stopxmlsetups
I hope it helps,
Pablo
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : [email protected] /
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
___________________________________________________________________________________