implement LIMIT and OFFSET in search xml

some formatting