(1) verify no loop in style reference chain;
(2) add tests for loop in style reference chain;
(3) assign id attribute to xml:id attributes in infoset;