+extension.wlxmlClass.list.transformations = {
+ extractListItems: function() {
+ var contents = this.contents(),
+ first = contents[0],
+ last;
+ if(contents.length) {
+ last = contents[contents.length-1];
+ return this.document.extractItems({
+ item1: first,
+ item2: last
+ });
+ } else {
+ this.detach();
+ }
+ }
+};
+