\setupexternalfigures[location={local,global,default}]

\setupinteraction[state=start]

\setuplayout
[edge=1mm,
edgedistance=1mm,
margin=15mm,
margindistance=1mm,
top=6mm,
topdistance=1mm,
header=17mm,
headerdistance=1mm,
footerdistance=6mm,
footer=15mm,
bottomdistance=1mm,
bottom=5mm,
%calculated
topspace=\dimexpr\topheight+\topdistance,
backspace=\dimexpr\leftedgewidth+\leftedgedistance+\leftmarginwidth+\leftmargindistance,
width=\dimexpr 210mm-\backspace*2 ,
height=\dimexpr 297mm-\topspace-\bottomdistance-\bottomheight,
textheight=\dimexpr\height-\headerheight-\headerdistance-\footerdistance-\footerheight]

\define[1]\docListBulleted
	{\startitemize[1][before={\blank[small]},after={\blank[big]},inbetween={\blank[small]}] #1 \stopitemize}
	
\define[1]\docListNumbered
	{\startitemize[n][before={\blank[small]},after={\blank[big]},inbetween={\blank[small]}] #1 \stopitemize}
	
\define[3]\docGraphic
	{\placefigure[here][#1]{#2}{\externalfigure[#3][scale=200, maxwidth=0.95\textwidth, maxheight=0.95\textheight]}}

\setupxtable
  [headerheader]
  [foregroundcolor=white,
   foregroundstyle=bold,
   background=color,
   backgroundcolor=black]
   
\setupxtable
  [blackrow]
  [foregroundcolor=black,
   background=color,
   backgroundcolor=black,
   width=0.5cm]
   
\setupxtable
  [cellheader]
  [foregroundcolor=black,
   foregroundstyle=bold,
   background=color,
   backgroundcolor=gray,
   width=\dimexpr\textwidth-0.5cm]
\setupxtable
  [cellbody]
  [foregroundcolor=black,
   background=color,
   backgroundcolor=white,
   width=\dimexpr\textwidth-0.5cm]


\starttext
dddd

\emptylines[25]

dddfdf

\startsection
  [
    reference={},
    title={text text text text}
  ]
texttexttext
\placetable[here,split]
   []
   {Tool: text}  {
\startxtable
  \startxtablehead
    \startxrow
      \startxcell[headerheader][nx=2] Tool: text      \stopxcell
    \stopxrow
  \stopxtablehead
  \startxtablebody
    \startxrow
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] Description:      \stopxcell
    \stopxrow
    \startxrow[samepage=before]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
Tootextements. 
      \stopxcell
    \stopxrow
    \startxrow[samepage=after]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] Impact:      \stopxcell
    \stopxrow
    \startxrow
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
TI 2 (Impact) 
      \stopxcell
    \stopxrow
    \startxrow[samepage=after]
      \startxcell[blackrow][samepage=after]  \stopxcell
      \startxcell[cellheader][samepage=after] Input Artifacts:      \stopxcell
    \stopxrow
    \startxrow
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
\docListBulleted{
  \item testext
  \item vptext
  \item vpltext
}

      \stopxcell
    \stopxrow
    \startxrow[samepage=after]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] Otext text text text      \stopxcell
    \stopxrow
    \startxrow[samepage=before]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
\docListBulleted{
  \item dd
  \item dd)d
  \item vpladdanuadd
}

      \stopxcell
    \stopxrow
  \stopxtablebody
\stopxtable
}
\placetable[here,split]
   []
   {text}  {
\startxtable
  \startxtablehead
    \startxrow
      \startxcell[headerheader][nx=2] text     \stopxcell
    \stopxrow
  \stopxtablehead
  \startxtablebody
    \startxrow[samepage=after]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] Description:      \stopxcell
    \stopxrow
    \startxrow[samepage=before]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
-None- 
      \stopxcell
    \stopxrow
    \startxrow[samepage=after]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] Version:      \stopxcell
    \stopxrow
    \startxrow[samepage=before]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
text 
      \stopxcell
    \stopxrow
  \stopxtablebody
\stopxtable
}
\startsubsection
  [
    reference={},
    title={Use Cases of text}
  ]
text text text text
\blank
text text text text
\docListNumbered{
  \item text text text text
  \item Extext text text text
  \item Imtext text text text
  \item Imtext text text text
}

\startsubsubsection
  [
    reference={DocSection_100031},
    title={text text text text}
  ]
text text text text
\placetable[here,split]
   []
   {text text text text}  {
\startxtable
  \startxtablehead
    \startxrow
      \startxcell[headerheader][nx=2] text text text text     \stopxcell
    \stopxrow
  \stopxtablehead
  \startxtablebody
    \startxrow[samepage=after]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] text text text text    \stopxcell
    \stopxrow
    \startxrow[samepage=before]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
text text text text
      \stopxcell
    \stopxrow
  \stopxtablebody
\stopxtable
}
This use case requires 2 features.  \in{Figure}[DocGraphic_100032] shows the dependencies between the use cases and features.
\docGraphic{DocGraphic_100032}{Dependencyddddd dsfdf}{cow}

The use case text features:
\docListBulleted{
  \item text text text text
  \item text text text text
}

text text text text


\placetable[here,split]
   []
   {text text text text}  {
\startxtable
  \startxtablehead
    \startxrow
      \startxcell[headerheader][nx=2] text text text text     \stopxcell
    \stopxrow
  \stopxtablehead
  \startxtablebody
    \startxrow[samepage=after]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] text text text text     \stopxcell
    \stopxrow
    \startxrow[samepage=before]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
\docListBulleted{
  \item text text text text 
}

      \stopxcell
    \stopxrow
    \startxrow[samepage=after]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellheader] text text text text      \stopxcell
    \stopxrow
    \startxrow[samepage=before]
      \startxcell[blackrow]  \stopxcell
      \startxcell[cellbody] 
\docListBulleted{
  \item text text text text
}

      \stopxcell
    \stopxrow
  \stopxtablebody
\stopxtable
}
\stopsubsubsection
\stopsubsection
\stopsection
\stopchapter

\stoptext

