ction[string-length(@rdf:resource) &gt; 0]) then (number(tokenize(instance('doc')/*[1]/foaf:depiction[string-length(@rdf:resource) &gt; 0][last()]/@rdf:resource, '_')[last()]) + 1) else 1"/>
																		<xforms:var name="monogram_id"
																			select="concat(instance('control-instance')/id, '_', string($current))"/>
																		<xforms:setvalue ref="instance('generator-config')/url" value="instance('file')"/>
																		<xforms:setvalue ref="instance('generator-config')/content-t