child::para[position()=last()-1] selects the last but one para child of the context node