Protect against allocating segments > SegmentSizeMax
Throw Xem::Exception on c++ side and DOMException on java-side
codestyle
Fix various bugs
Implement XPath variable passing with elements