% test character entity failure.
\startxmlsetups demo:entity
\xmlsetsetup{#1}{root}{demo:entity:*}
\stopxmlsetups
\xmlregisterdocumentsetup{demo}{demo:entity}
\startxmlsetups demo:entity:root
\blank Start test:\crlf
root: <amp> = "&"\crlf
root: <number> = "&\letterhash 038;”\crlf % &\#038; produces the same
End test\blank
\stopxmlsetups
\startbuffer[demo]
<root></root>
\stopbuffer
\starttext
\currentdate-\currenttime\quad\ConTeXt-version=\contextversion\blank
{\bf Testing use of character entities}\blank
These should produce the same result: \type{&} and \type{&}\blank
\xmlprocessbuffer{demo}{demo}{}\blank
\stoptext