I am looking to do two boxes with mdframed similarly to the following:

The first box is easy but I don't know how to place a label to the left of the second box. The positions of the dashed lines are to be fixed: in particular, the position of the second line should NOT depend on the length of the label "(i)". How should I go about doing this?
I tried using \llap but the label gets cropped.
MWE for the first box:
\documentclass{article}
\usepackage[framemethod=TikZ]{mdframed}
\usepackage{lipsum}
\mdfdefinestyle{testframe}{topline=false,rightline=false,bottomline=false,%
innerleftmargin=1em,linecolor=white,%
tikzsetting={draw=black,line width=.5pt,dashed,dash pattern= on 1pt off 3pt} }
\begin{document}
\begin{mdframed}[style=testframe]
\lipsum[3]
\end{mdframed}
\end{document}

tiKZormdframedbut indeed I tried modifying that code and without success. The problem with (my use of) the method described in your link is that the position of the line depends on the object you put next to it. – hwhm May 29 '12 at 12:24(i)represent anything? – Marco Daniel May 29 '12 at 15:46firstextra={\node[text width=3em,align=right,outer sep=0em,inner sep=0em] at ($(P-|O)+(-1.5em,-10pt)$) {(i)\;\;\;};}and also for singleextra etc. – hwhm May 29 '12 at 16:44