Hi, list. I want to get some attributes from <meta> nodes in a document,
but I don't get results as expected. MWE:

\starttext

\startbuffer[test]
<document>
<title>A title</title>
<meta content="Masoud Pezeshkian" name="name"></meta>
<meta content="Iran" name="country"></meta>
<meta content="surgeon" name="profession"></meta>
</document>
\stopbuffer

\startxmlsetups xml:document
\xmlattribute{#1}{/meta[name=country]}{content}
\xmlattribute{#1}{/meta[name=name]}{content}
\xmlattribute{#1}{/meta[name=profession]}{content}
\stopxmlsetups

\startxmlsetups xml:mysetups
  \xmlsetsetup{\xmldocument}{*}{-}
  \xmlsetsetup{#1}{document}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\xmlprocessbuffer{main}{test}{}

\stoptext

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

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

Reply via email to