It seems that attribute selector doesn't work properly on data-* attributes. I added a bug report here:
To extract both type and name you should create an Element selector for the li element and two child selectors for name and attribute. In this case these child selectors should also select the li element. But that is available in the development version.
{"_id":"data-test","startUrl":"
http://www.w3schools.com/tags/tryhtml5_global_data.htm","selectors":[{"parentSelectors":["_root"],"type":"SelectorElement","multiple":true,"id":"li-elem","selector":"li","delay":""},{"parentSelectors":["li-elem"],"type":"SelectorElementAttribute","multiple":false,"id":"type","selector":"_parent_","extractAttribute":"data-animal-type","delay":""},{"parentSelectors":["li-elem"],"type":"SelectorText","multiple":false,"id":"animal","selector":"_parent_","regex":"","delay":""}]}