% interface=en

\setupitemize
  [packed]


\starttext

\startitemize[n]
\item 1.
\item 2.
\item 3.
  \startitemize[a]
  \item a.
  \item b.
  \item c.
    \startitemize[r]
    \item i.
    \item ii.
    \item iii.
    \stopitemize
  \item d.
  \item e.
  \stopitemize
\item 4.
\item 5.
\stopitemize

\hairline

\defineXMLenvironment [list]
  {\startitemize[\XMLpar{list}{options}{}]} 
  {\stopitemize}

\defineXMLenvironment [listr]
  {\startitemize[r]} 
  {\stopitemize}

\defineXMLenvironment [lista]
  {\startitemize[a]} 
  {\stopitemize}

\defineXMLcommand     [li]            
  {\item}

\processXMLfilegrouped{test.xml}

\stoptext
