\input katalog-setup2
\useXMLfilter [utf]
\defineXMLenvironment [katalog] {\starttext} {\stoptext}
\defineXMLargument [imie-i-nazwisko] \title
\defineXMLenvironment[obraz] {\bgroup} {\egroup\par}
\defineXMLargument [tytul] \subject
%\defineXMLenvironment[dane] {\startitemize[5,packed]\tfx} {\stopitemize}
\defineXMLargument [technika-i-material] \item
%\defineXMLargument [material]\item
\defineXMLargument [wymiary]\item
\defineXMLargument [wlasciciel-i-nr]\item
%\defineXMLargument [nrinw]\item
\defineXMLargument [datowanie]\item
\defineXMLenvironment[podroze] {\bgroup} {\egroup\page}
\defineXMLenvironment[podroz] {\startitemize[5,packed]\tfx} {\stopitemize}
\defineXMLenvironment[it] {\bgroup\it} {\egroup}
\defineXMLenvironment [daty-przyjazdu]{\bgroup\tfd} {\egroup
}

\defineXMLargument [bibliografia]\item
\defineXMLargument [nota]\item
\defineXMLargument [zrodlo]\blank
\defineXMLenvironment[obrazy-z-podrozy] {\bgroup} {\egroup\par}
\defineXMLenvironment[cytat] {\setuplinewidth[1pt]\startnarrower\startcolumns[n=2,tolerance=verytolerant]} {\stopcolumns\stopnarrower}
\defineXMLenvironment[obraz-z-podrozy]{\bgroup}{\egroup\blank}



\defineXMLenvironment [dane] {\startitemize[5,packed]\blank\defineXMLpush[ilustracja]}{\blank\externalfigure[\XMLpop{ilustracja}][width=10cm]\stopitemize\page}


%\showsetups
%\showlayout
\processXMLfilegrouped{posredni.xml}
%trzeba pokombinować z blankami żeby uzyskać odstępy jak trzeba




