\startxmlsetups xml:testsetups
	\xmlsetsetup{test}{test|subnode}{xml:*}
\stopxmlsetups
\xmlregistersetup{xml:testsetups}

\startxmlsetups xml:shownamed
	<\xmltag{#1}> from <\xmltext{#1}{../tag()}> \type{wildcard[@selector=="yes"]}: \xmlflush{#1}\crlf
\stopxmlsetups
\startxmlsetups xml:showstarred
	<\xmltag{#1}> from <\xmltext{#1}{../tag()}> \type{*[@selector=="yes"]}: \xmlflush{#1}\crlf
\stopxmlsetups
\startxmlsetups xml:showdoublestarred
	<\xmltag{#1}> from <\xmltext{#1}{../tag()}> \type{*/*[@selector=="yes"]}: \xmlflush{#1}\crlf
\stopxmlsetups

\startxmlsetups xml:test
	\xmlfilter{#1}{wildcard[@selector=="yes"]/command(xml:shownamed)}\crlf
	\xmlfilter{#1}{*[@selector=="yes"]/command(xml:showstarred)}\crlf
	\xmlfilter{#1}{*/*[@selector=="yes"]/command(xml:showdoublestarred)}\crlf
\stopxmlsetups

\startxmlsetups xml:subnode
	Inside \xmltag{#1}\space\xmlflush{#1}
\stopxmlsetups

\startbuffer[test]
<test>
	<wildcard selector="yes">WILDCARD-1</wildcard>
	<subnode>
		<wildcard selector="yes">WILDCARD-2</wildcard>
	</subnode>
</test>
\stopbuffer

\starttext
\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
{\bf Testing wildcard}\par
\xmlprocessbuffer{test}{test}{}

\stoptext
