Thanks. I was close :)

Dr. Giuseppe G. A. Celano
DFG-project leader
Universität Leipzig
Institute of Computer Science, NLP
Augustusplatz 10
Tel: +4934132223
04109 Leipzig
Deutschland

E-mail: celano@informatik.uni-leipzig.de
Web site 1: http://asv.informatik.uni-leipzig.de/en/staff/Giuseppe_Celano 
Web site 2: https://sites.google.com/site/giuseppegacelano/

On Apr 3, 2019, at 10:59 AM, Kirsten, Dirk <Dirk.Kirsten@senacor.com> wrote:

for tumbling window $s in ("this", "is", "an", "example", "." , "this", "is", "another", "[", "example", ".", "]", "Another", "example", ".")
start  $a when fn:true() 
end $b previous $prev next $r when ($b = "]" and $prev = ".") or ($b = "." and $r != "]")
return
<s>{$s}</s>